Attributes
Members list
Type members
Classlikes
Mirror for product types (case classes and value classes).
Mirror for product types (case classes and value classes).
Produced by Made.derived when T is a case class, a zero-field case class, or a value class (extends AnyVal).
Elems is a tuple of MadeFieldElem representing each constructor parameter. GeneratedElems is a tuple of GeneratedMadeElem for any @generated members.
Attributes
- See also
- Supertypes
Mirror for singleton types (objects and Unit).
Mirror for singleton types (objects and Unit).
Produced by Made.derived when T is an object, Unit, or a singleton type.
Elems is fixed to EmptyTuple since singletons have no elements. The singleton instance is available via value.
Attributes
- See also
- Supertypes
Mirror for sum types (sealed traits and enums).
Mirror for sum types (sealed traits and enums).
Produced by Made.derived when T is a sealed trait or enum.
Elems is a tuple of MadeSubElem and MadeSubSingletonElem representing the subtypes.
Attributes
- See also
- Supertypes
Mirror for transparent wrapper types (single-field case classes annotated with @transparent).
Mirror for transparent wrapper types (single-field case classes annotated with @transparent).
Produced by Made.derived when T is a case class annotated with @transparent having exactly one constructor field. @generated members are not supported on transparent types and will cause a compile error.
Attributes
- See also
- Supertypes
Types
Givens
Givens
Derives a Made mirror for T at compile time.
Derives a Made mirror for T at compile time.
The concrete subtype of the returned mirror is determined by the following derivation priority (first match wins):
- Singleton -
Tis an object,Unit, or a singleton type - Transparent -
Tis annotated with@transparent(must have exactly one constructor field;@generatedmembers are not allowed) - Product -
Tis a value class (extendsAnyVal) - Product -
Thas aMirror.ProductOf[T](case classes) - Sum -
Thas aMirror.SumOf[T](sealed traits, enums)
The return type is Made.Of[T] but the actual runtime type is the more specific subtype listed above.
Attributes
- See also