trait GenericInstances extends AnyRef
Generic derivation for ToRefTree
This works for case class-like types, where for each field an instance of ToRefTree exists or can be derived using this same facility.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- GenericInstances
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class DerivationConfig[A](name: Option[(A) => String] = None, omittedFields: Set[String] = Set.empty[String], tweakedFields: Map[String, (A) => FieldUpdate] = Map.empty[String, A => DerivationConfig.FieldUpdate]) extends Product with Serializable
A class that allows to configure how the derivation of ToRefTree for A is done
- trait GenericToRefTree[A, R] extends AnyRef
We use a different typeclass to avoid defining nonsense ToRefTree instances
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 Generic CCons RefTree[A, K <: Symbol, H, T <: Coproduct](implicit headAsTree: Lazy[ToRefTree[H]], tailAsTree: GenericToRefTree[A, T]): GenericToRefTree[A, :+:[FieldType[K, H], T]]
- implicit def Generic CNil RefTree[A]: GenericToRefTree[A, CNil]
- implicit def Generic Coproduct RefTree[A <: AnyRef, R <: Coproduct](implicit generic: Aux[A, R], genericAsTree: Lazy[GenericToRefTree[A, R]]): ToRefTree[A]
- implicit def Generic HCons RefTree[A, K <: Symbol, H, T <: HList](implicit witness: Aux[K], headAsTree: Lazy[ToRefTree[H]], tailAsTree: GenericToRefTree[A, T], derivationConfig: DerivationConfig[A] = DerivationConfig[A]()): GenericToRefTree[A, ::[FieldType[K, H], T]]
- implicit def Generic HNil RefTree[A]: GenericToRefTree[A, HNil]
- implicit def Generic Product RefTree[A <: AnyRef, R <: HList](implicit generic: Aux[A, R], genericAsTree: Lazy[GenericToRefTree[A, R]], derivationConfig: DerivationConfig[A] = DerivationConfig[A]()): ToRefTree[A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object DerivationConfig extends Serializable
- object GenericToRefTree
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)