implicit final class InjectSyntax[T] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- InjectSyntax
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new InjectSyntax(t: T)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
inject[C <: Coproduct](implicit inj: Inject[C, T]): C
Inject the receiver into a coproduct
C
.Inject the receiver into a coproduct
C
. Only available if the coproduct contains the typeT
. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
runtimeInject[C <: Coproduct](implicit rInj: RuntimeInject[C]): Option[C]
Inject the receiver into a coproduct
C
, by trying to convert it to each element of C.Inject the receiver into a coproduct
C
, by trying to convert it to each element of C. Only available if the coproduct is not CNil. - val t: T
-
def
toString(): String
- Definition Classes
- Any