trait Implicits extends Types with BigDecimalSupport
Typeclasses to allow read/writing of all the common data-types and data-structures in the standard library
- Alphabetic
- By Inheritance
- Implicits
- BigDecimalSupport
- Types
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit class MergeR [T] extends AnyRef
- implicit class MergeRW [T] extends AnyRef
- implicit class MergeW [T] extends AnyRef
-
type
ReadWriter[T] = (Implicits.this)#Reader[T] with (Implicits.this)#Writer[T]
- Definition Classes
- Types
-
trait
Reader
[T] extends AnyRef
A typeclass that allows you to deserialize a type T from JSON, which can itself be read from a String
A typeclass that allows you to deserialize a type T from JSON, which can itself be read from a String
- Definition Classes
- Types
- Annotations
- @implicitNotFound( ... )
-
trait
Writer
[T] extends AnyRef
A typeclass that allows you to serialize a type T to JSON, and eventually to a string
A typeclass that allows you to serialize a type T to JSON, and eventually to a string
- Definition Classes
- Types
- Annotations
- @implicitNotFound( ... )
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit def ArrayR[T](implicit arg0: R[T], arg1: ClassTag[T]): R[Array[T]]
- implicit def ArrayW[T](implicit arg0: W[T]): W[Array[T]]
- implicit val BigDecimalRW: (Implicits.this)#Writer[BigDecimal] with (Implicits.this)#Reader[BigDecimal]
- implicit val BigIntRW: (Implicits.this)#Writer[BigInt] with (Implicits.this)#Reader[BigInt]
- implicit val BooleanRW: (Implicits.this)#Writer[Boolean] with (Implicits.this)#Reader[Boolean]
- implicit val ByteRW: RW[Byte]
- def Case0R[T](t: () ⇒ T): (Implicits.this)#Reader[T]
- def Case0W[T](f: (T) ⇒ Boolean): (Implicits.this)#Writer[T]
- def CaseR[T, V](f: (T) ⇒ V, names: Array[String], defaults: Array[Value])(implicit arg0: R[T]): (Implicits.this)#Reader[V]
- def CaseW[T, V](f: (V) ⇒ Option[T], names: Array[String], defaults: Array[Value])(implicit arg0: W[T]): (Implicits.this)#Writer[V]
- implicit val CharRW: (Implicits.this)#Writer[Char] with (Implicits.this)#Reader[Char]
- implicit val DoubleRW: RW[Double]
- implicit val DurationR: (Implicits.this)#Reader[Duration]
- implicit val DurationW: W[Duration]
- implicit def EitherR[A, B](implicit arg0: R[A], arg1: R[B]): R[Either[A, B]]
- implicit def EitherW[A, B](implicit arg0: W[A], arg1: W[B]): W[Either[A, B]]
- implicit val FiniteR: (Implicits.this)#Reader[FiniteDuration]
- implicit val FiniteW: (Implicits.this)#Writer[FiniteDuration]
- implicit val FloatRW: RW[Float]
- implicit val InfiniteR: (Implicits.this)#Reader[Infinite]
- implicit val InfiniteW: (Implicits.this)#Writer[Infinite]
- implicit val IntRW: RW[Int]
- implicit def JsArrR: R[Arr]
- implicit def JsArrW: W[Arr]
- implicit def JsFalseR: R[False.type]
- implicit def JsFalseW: W[False.type]
- implicit def JsNullR: R[Null.type]
- implicit def JsNullW: W[Null.type]
- implicit def JsNumR: R[Num]
- implicit def JsNumW: W[Num]
- implicit def JsObjR: R[Obj]
- implicit def JsObjW: W[Obj]
- implicit def JsStrR: R[Str]
- implicit def JsStrW: W[Str]
- implicit def JsTrueR: R[True.type]
- implicit def JsTrueW: W[True.type]
- implicit def LeftR[A, B](implicit arg0: R[A], arg1: R[B]): R[Left[A, B]]
- implicit def LeftW[A, B](implicit arg0: W[A], arg1: W[B]): W[Left[A, B]]
- implicit val LongRW: (Implicits.this)#Writer[Long] with (Implicits.this)#Reader[Long]
- implicit def MapR[K, V](implicit arg0: R[K], arg1: R[V]): R[Map[K, V]]
- implicit def MapW[K, V](implicit arg0: W[K], arg1: W[V]): W[Map[K, V]]
- implicit def NoneR: R[None.type]
- implicit def NoneW: W[None.type]
- implicit def OptionR[T](implicit arg0: R[T]): R[Option[T]]
- implicit def OptionW[T](implicit arg0: W[T]): W[Option[T]]
- implicit def RightR[A, B](implicit arg0: R[A], arg1: R[B]): R[Right[A, B]]
- implicit def RightW[A, B](implicit arg0: W[A], arg1: W[B]): W[Right[A, B]]
- implicit def SeqishR[V[_], T](implicit cbf: CanBuildFrom[Nothing, T, V[T]], r: R[T]): R[V[T]]
- implicit def SeqishW[T, V[_]](implicit v: <:<[V[_], Iterable[_]], w: W[T]): W[V[T]]
- implicit val ShortRW: RW[Short]
- def SingletonR[T](t: T): (Implicits.this)#Reader[T]
- def SingletonW[T](f: T): (Implicits.this)#Writer[T]
- implicit def SomeR[T](implicit arg0: R[T]): (Implicits.this)#Reader[Some[T]]
- implicit def SomeW[T](implicit arg0: W[T]): (Implicits.this)#Writer[Some[T]]
- implicit val StringRW: (Implicits.this)#Writer[String] with (Implicits.this)#Reader[String]
- implicit val SymbolRW: (Implicits.this)#Writer[Symbol] with (Implicits.this)#Reader[Symbol]
- implicit val UnitRW: (Implicits.this)#Writer[Unit] with (Implicits.this)#Reader[Unit]
- implicit def UuidR: R[UUID]
- implicit def UuidW: W[UUID]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exactBigDecimal(s: String): BigDecimal
- Attributes
- protected
- Definition Classes
- BigDecimalSupport
- Annotations
- @inline()
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeReader[T](pf: PartialFunction[Value, T]): (Implicits.this)#Reader[T]
- def makeWriter[T](f: (T) ⇒ Value): (Implicits.this)#Writer[T]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
read[T](expr: String)(implicit arg0: (Implicits.this)#Reader[T]): T
Deserialize a
Stringobject of type TDeserialize a
Stringobject of type T- Definition Classes
- Types
-
def
readJs[T](expr: Value)(implicit arg0: (Implicits.this)#Reader[T]): T
Deserialize a
Js.Valueobject of type TDeserialize a
Js.Valueobject of type T- Definition Classes
- Types
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
write[T](expr: T, indent: Int = 0)(implicit arg0: (Implicits.this)#Writer[T]): String
Serialize an object of type T to a
StringSerialize an object of type T to a
String- Definition Classes
- Types
-
def
writeJs[T](expr: T)(implicit arg0: (Implicits.this)#Writer[T]): Value
Serialize an object of type T to a
Js.ValueSerialize an object of type T to a
Js.Value- Definition Classes
- Types
-
object
Internal
APIs that need to be exposed to the outside world to support Macros which depend on them, but probably should not get used directly.
-
object
Aliases
Handy shorthands for Reader and Writer
Handy shorthands for Reader and Writer
- Definition Classes
- Types
-
object
Knot
Classes that provides a mutable version of ReadWriter, used to allow serialization and deserialization of recursive data structure
Classes that provides a mutable version of ReadWriter, used to allow serialization and deserialization of recursive data structure
- Definition Classes
- Types
-
object
ReadWriter
Helper object that makes it convenient to create instances of bother Reader and Writer at the same time.
-
object
Reader
- Definition Classes
- Types
-
object
Writer
- Definition Classes
- Types