Default given instances of FromExpr
Default given instances of FromExpr
- Companion
- class
Givens
Givens
Default implementation of FromExpr[Boolean]
- Transform '{true}
into Some(true)
- Transform '{false}
into Some(false)
- Otherwise returns None
Default implementation of FromExpr[Boolean]
- Transform '{true}
into Some(true)
- Transform '{false}
into Some(false)
- Otherwise returns None
Default implementation of FromExpr[Byte]
- Transform '{n}
into Some(n)
for a literal n
of type Byte
- Otherwise returns None
Default implementation of FromExpr[Byte]
- Transform '{n}
into Some(n)
for a literal n
of type Byte
- Otherwise returns None
Default implementation of FromExpr[Char]
- Transform '{c}
into Some(c)
for a literal c
of type Char
- Otherwise returns None
Default implementation of FromExpr[Char]
- Transform '{c}
into Some(c)
for a literal c
of type Char
- Otherwise returns None
Default implementation of FromExpr[Double]
- Transform '{n}
into Some(n)
for a literal n
of type Double
- Otherwise returns None
Default implementation of FromExpr[Double]
- Transform '{n}
into Some(n)
for a literal n
of type Double
- Otherwise returns None
Default implementation of FromExpr[Either]
- Transform '{Left(x)}
into Some(Left(x))
if x
can be transformed using FromExpr[L]
- Transform '{Right(x)}
into Some(Right(x))
if x
can be transformed using FromExpr[R]
- Otherwise returns None
Default implementation of FromExpr[Either]
- Transform '{Left(x)}
into Some(Left(x))
if x
can be transformed using FromExpr[L]
- Transform '{Right(x)}
into Some(Right(x))
if x
can be transformed using FromExpr[R]
- Otherwise returns None
Default implementation of FromExpr[EmptyTuple]
- Transform '{EmptyTuple}
into Some(EmptyTuple)
- Otherwise returns None
Default implementation of FromExpr[EmptyTuple]
- Transform '{EmptyTuple}
into Some(EmptyTuple)
- Otherwise returns None
Default implementation of FromExpr[Float]
- Transform '{n}
into Some(n)
for a literal n
of type Float
- Otherwise returns None
Default implementation of FromExpr[Float]
- Transform '{n}
into Some(n)
for a literal n
of type Float
- Otherwise returns None
Default implementation of FromExpr[Int]
- Transform '{n}
into Some(n)
for a literal n
of type Int
- Otherwise returns None
Default implementation of FromExpr[Int]
- Transform '{n}
into Some(n)
for a literal n
of type Int
- Otherwise returns None
Default implementation of FromExpr[Left]
- Transform '{Left(x)}
into Some(Left(x))
if x
can be transformed using FromExpr[L]
- Otherwise returns None
Default implementation of FromExpr[Left]
- Transform '{Left(x)}
into Some(Left(x))
if x
can be transformed using FromExpr[L]
- Otherwise returns None
Default implementation of FromExpr[List]
- Transform '{List(x1, ..., xn)}
into Some(List(x1, ..., xn))
if all xi
can be transformed using FromExpr[Ti]
- Transform '{List.empty}
into Some(Nil)
- Transform '{Nil}
into Some(Nil)
- Otherwise returns None
Default implementation of FromExpr[List]
- Transform '{List(x1, ..., xn)}
into Some(List(x1, ..., xn))
if all xi
can be transformed using FromExpr[Ti]
- Transform '{List.empty}
into Some(Nil)
- Transform '{Nil}
into Some(Nil)
- Otherwise returns None
Default implementation of FromExpr[Long]
- Transform '{n}
into Some(n)
for a literal n
of type Long
- Otherwise returns None
Default implementation of FromExpr[Long]
- Transform '{n}
into Some(n)
for a literal n
of type Long
- Otherwise returns None
Default implementation of FromExpr[Map]
- Transform '{Map(x1, ..., xn)}
into Some(Map(x1, ..., xn))
if all xi
can be transformed using FromExpr[Ti]
- Transform '{Map.empty}
into Some(Map())
- Otherwise returns None
Default implementation of FromExpr[Map]
- Transform '{Map(x1, ..., xn)}
into Some(Map(x1, ..., xn))
if all xi
can be transformed using FromExpr[Ti]
- Transform '{Map.empty}
into Some(Map())
- Otherwise returns None
Default implementation of FromExpr[Nil]
- Transform '{Nil}
into Some(Nil)
- Otherwise returns None
Default implementation of FromExpr[Nil]
- Transform '{Nil}
into Some(Nil)
- Otherwise returns None
Default implementation of FromExpr[None]
- Transform '{None}
into Some(None)
- Otherwise returns None
Default implementation of FromExpr[None]
- Transform '{None}
into Some(None)
- Otherwise returns None
Default implementation of FromExpr[Option]
- Transform '{Some(x)}
into Some(Some(x))
if x
can be transformed using FromExpr[T]
- Transform '{None}
into Some(None)
- Otherwise returns None
Default implementation of FromExpr[Option]
- Transform '{Some(x)}
into Some(Some(x))
if x
can be transformed using FromExpr[T]
- Transform '{None}
into Some(None)
- Otherwise returns None
Default implementation of FromExpr[Right]
- Transform '{Right(x)}
into Some(Right(x))
if x
can be transformed using FromExpr[R]
- Otherwise returns None
Default implementation of FromExpr[Right]
- Transform '{Right(x)}
into Some(Right(x))
if x
can be transformed using FromExpr[R]
- Otherwise returns None
Default implementation of FromExpr[Seq]
- Transform '{Seq(x1, ..., xn)}
into Some(Seq(x1, ..., xn))
if all xi
can be transformed using FromExpr[Ti]
- Transform sequences that come out of varargs
- Otherwise returns None
Default implementation of FromExpr[Seq]
- Transform '{Seq(x1, ..., xn)}
into Some(Seq(x1, ..., xn))
if all xi
can be transformed using FromExpr[Ti]
- Transform sequences that come out of varargs
- Otherwise returns None
Default implementation of FromExpr[Set]
- Transform '{Set(x1, ..., xn)}
into Some(Set(x1, ..., xn))
if all xi
can be transformed using FromExpr[Ti]
- Transform '{Set.empty}
into Some(Set())
- Otherwise returns None
Default implementation of FromExpr[Set]
- Transform '{Set(x1, ..., xn)}
into Some(Set(x1, ..., xn))
if all xi
can be transformed using FromExpr[Ti]
- Transform '{Set.empty}
into Some(Set())
- Otherwise returns None
Default implementation of FromExpr[Short]
- Transform '{n}
into Some(n)
for a literal n
of type Short
- Otherwise returns None
Default implementation of FromExpr[Short]
- Transform '{n}
into Some(n)
for a literal n
of type Short
- Otherwise returns None
Default implementation of FromExpr[Some]
- Transform '{Some(x)}
into Some(Some(x))
if x
can be transformed using FromExpr[T]
- Otherwise returns None
Default implementation of FromExpr[Some]
- Transform '{Some(x)}
into Some(Some(x))
if x
can be transformed using FromExpr[T]
- Otherwise returns None
Default implementation of FromExpr[StringContext]
- Transform '{StringContext(args: _*)}
into Some(StringContext(args: _*))
if args
is explicit and each one is liftable
- Otherwise returns None
Default implementation of FromExpr[StringContext]
- Transform '{StringContext(args: _*)}
into Some(StringContext(args: _*))
if args
is explicit and each one is liftable
- Otherwise returns None
Default implementation of FromExpr[String]
- Transform '{str}
into Some(str)
for a literal str
of type String
- Otherwise returns None
Default implementation of FromExpr[String]
- Transform '{str}
into Some(str)
for a literal str
of type String
- Otherwise returns None
Default implementation of FromExpr[Tuple10[...]]
- Transform '{Tuple0(x1, ..., x10)}
into Some(Tuple0(x1, ..., x10))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple10[...]]
- Transform '{Tuple0(x1, ..., x10)}
into Some(Tuple0(x1, ..., x10))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple11[...]]
- Transform '{Tuple1(x1, ..., x11)}
into Some(Tuple1(x1, ..., x11))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple11[...]]
- Transform '{Tuple1(x1, ..., x11)}
into Some(Tuple1(x1, ..., x11))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple12[...]]
- Transform '{Tuple2(x1, ..., x12)}
into Some(Tuple2(x1, ..., x12))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple12[...]]
- Transform '{Tuple2(x1, ..., x12)}
into Some(Tuple2(x1, ..., x12))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple13[...]]
- Transform '{Tuple3(x1, ..., x13)}
into Some(Tuple3(x1, ..., x13))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple13[...]]
- Transform '{Tuple3(x1, ..., x13)}
into Some(Tuple3(x1, ..., x13))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple14[...]]
- Transform '{Tuple4(x1, ..., x14)}
into Some(Tuple4(x1, ..., x14))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple14[...]]
- Transform '{Tuple4(x1, ..., x14)}
into Some(Tuple4(x1, ..., x14))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple15[...]]
- Transform '{Tuple5(x1, ..., x15)}
into Some(Tuple5(x1, ..., x15))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple15[...]]
- Transform '{Tuple5(x1, ..., x15)}
into Some(Tuple5(x1, ..., x15))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple16[...]]
- Transform '{Tuple6(x1, ..., x16)}
into Some(Tuple6(x1, ..., x16))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple16[...]]
- Transform '{Tuple6(x1, ..., x16)}
into Some(Tuple6(x1, ..., x16))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple17[...]]
- Transform '{Tuple7(x1, ..., x17)}
into Some(Tuple7(x1, ..., x17))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple17[...]]
- Transform '{Tuple7(x1, ..., x17)}
into Some(Tuple7(x1, ..., x17))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple18[...]]
- Transform '{Tuple8(x1, ..., x18)}
into Some(Tuple8(x1, ..., x18))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple18[...]]
- Transform '{Tuple8(x1, ..., x18)}
into Some(Tuple8(x1, ..., x18))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple19[...]]
- Transform '{Tuple9(x1, ..., x19)}
into Some(Tuple9(x1, ..., x19))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple19[...]]
- Transform '{Tuple9(x1, ..., x19)}
into Some(Tuple9(x1, ..., x19))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple1[...]]
- Transform '{Tuple1(x1)}
into Some(Tuple1(x1))
if x1
can be transformed using FromExpr[T]
- Otherwise returns None
Default implementation of FromExpr[Tuple1[...]]
- Transform '{Tuple1(x1)}
into Some(Tuple1(x1))
if x1
can be transformed using FromExpr[T]
- Otherwise returns None
Default implementation of FromExpr[Tuple20[...]]
- Transform '{Tuple0(x1, ..., x20)}
into Some(Tuple0(x1, ..., x20))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple20[...]]
- Transform '{Tuple0(x1, ..., x20)}
into Some(Tuple0(x1, ..., x20))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple21[...]]
- Transform '{Tuple1(x1, ..., x21)}
into Some(Tuple1(x1, ..., x21))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple21[...]]
- Transform '{Tuple1(x1, ..., x21)}
into Some(Tuple1(x1, ..., x21))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple22[...]]
- Transform '{Tuple2(x1, ..., x22)}
into Some(Tuple2(x1, ..., x22))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple22[...]]
- Transform '{Tuple2(x1, ..., x22)}
into Some(Tuple2(x1, ..., x22))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple2[...]]
- Transform '{Tuple2(x1, x2)}
into Some(Tuple2(x1, x2))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple2[...]]
- Transform '{Tuple2(x1, x2)}
into Some(Tuple2(x1, x2))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple3[...]]
- Transform '{Tuple3(x1, x2, x3)}
into Some(Tuple3(x1, x2, x3))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple3[...]]
- Transform '{Tuple3(x1, x2, x3)}
into Some(Tuple3(x1, x2, x3))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple4[...]]
- Transform '{Tuple4(x1, ..., x4)}
into Some(Tuple4(x1, ..., x4))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple4[...]]
- Transform '{Tuple4(x1, ..., x4)}
into Some(Tuple4(x1, ..., x4))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple5[...]]
- Transform '{Tuple5(x1, ..., x5)}
into Some(Tuple5(x1, ..., x5))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple5[...]]
- Transform '{Tuple5(x1, ..., x5)}
into Some(Tuple5(x1, ..., x5))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple6[...]]
- Transform '{Tuple6(x1, ..., x6)}
into Some(Tuple6(x1, ..., x6))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple6[...]]
- Transform '{Tuple6(x1, ..., x6)}
into Some(Tuple6(x1, ..., x6))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple7[...]]
- Transform '{Tuple7(x1, ..., x7)}
into Some(Tuple7(x1, ..., x7))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple7[...]]
- Transform '{Tuple7(x1, ..., x7)}
into Some(Tuple7(x1, ..., x7))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple8[...]]
- Transform '{Tuple8(x1, ..., x8)}
into Some(Tuple8(x1, ..., x8))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple8[...]]
- Transform '{Tuple8(x1, ..., x8)}
into Some(Tuple8(x1, ..., x8))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple9[...]]
- Transform '{Tuple9(x1, ..., x9)}
into Some(Tuple9(x1, ..., x9))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None
Default implementation of FromExpr[Tuple9[...]]
- Transform '{Tuple9(x1, ..., x9)}
into Some(Tuple9(x1, ..., x9))
if all xi
can be transformed using FromExpr[Ti]
- Otherwise returns None