A type somewhat like Mirror.SumOf allowing manipulating a sum type as if it was defined as a higher kinded type.
- Type parameters:
- A
The type being abstracted over.
- Companion:
- object
Type members
Inherited classlikes
A wrapper for Index where we want wildcards of it.
A wrapper for Index where we want wildcards of it.
- Inherited from:
- HKDGeneric
Inherited types
Returns the type of a field given its name.
Returns the type of a field given its name.
- Inherited from:
- HKDGeneric
A representation of A supporting higher kinded types.
A representation of A supporting higher kinded types.
- Inherited from:
- HKDGeneric
The name of the fields of A type. Field in this case can mean either the children of a sum type, or the fields of a product type.
The name of the fields of A type. Field in this case can mean either the children of a sum type, or the fields of a product type.
- Inherited from:
- HKDGeneric
Value members
Abstract methods
Concrete methods
Convert a value of the higher kinded representation to A. Will only return Some if only one of the fields is Some and the rest is None.
Convert a value of the higher kinded representation to A. Will only return Some if only one of the fields is Some and the rest is None.
Convert a value of A to the higher kinded representation. It will be Some in only one field, corresponding to the subtype passed in, and None in all the others.
Convert a value of A to the higher kinded representation. It will be Some in only one field, corresponding to the subtype passed in, and None in all the others.
Inherited methods
Converts Gen to the tuple representation.
Converts Gen to the tuple representation.
- Inherited from:
- HKDGeneric
Returns the index of the field a name corresponds to.
Returns the index of the field a name corresponds to.
- Inherited from:
- HKDGeneric
The name of the fields of A type. Field in this case can mean either the children of a sum type, or the fields of a product type.
The name of the fields of A type. Field in this case can mean either the children of a sum type, or the fields of a product type.
- Inherited from:
- HKDGeneric
Validates a string as a name if it matches the name of a field.
Validates a string as a name if it matches the name of a field.
- Inherited from:
- HKDGeneric
Converts the tuple representation to Gen.
Converts the tuple representation to Gen.
- Inherited from:
- HKDGeneric