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.
Attributes
- Companion
- object
- Source
- hkdGeneric.scala
- Graph
-
- Supertypes
-
trait GenHKDSumGeneric[A]trait HKDGeneric[A]trait GenHKDGeneric[A]class Objecttrait Matchableclass AnyShow all
Members list
Type members
Types
Attributes
- Source
- hkdGeneric.scala
Inherited types
Attributes
- Inherited from:
- GenHKDSumGeneric
- Source
- hkdGeneric.scala
A representation of A supporting higher kinded types.
A representation of A supporting higher kinded types.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
A wrapper for Index where we want wildcards of it.
A wrapper for Index where we want wildcards of it.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
The index of the Gen 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.
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.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
A tuple representation of A.
The name of the A type.
Value members
Abstract methods
Returns the index of a value. Because of soundness, this method can not be used if X = A. In that case, use indexOfA instead.
Returns the index of a value. Because of soundness, this method can not be used if X = A. In that case, use indexOfA instead.
Attributes
- Source
- hkdGeneric.scala
Same as indexOfA but also essentially casts the value to the unknown type, allowing further operations on it that requires that it is a subtype of A.
Same as indexOfA but also essentially casts the value to the unknown type, allowing further operations on it that requires that it is a subtype of A.
Attributes
- Source
- hkdGeneric.scala
Concrete methods
Convert a value of the higher kinded representation to Cat[A]
.
Convert a value of Cat[A]
to the higher kinded representation.
Convert a value of Cat[A]
to the higher kinded representation.
Attributes
- Definition Classes
- Source
- hkdGeneric.scala
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.
Attributes
- Source
- hkdGeneric.scala
Same as indexOf but also works for values of type A.
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.
Attributes
- Source
- hkdGeneric.scala
Widen the higher kinded representation to a Const type of the top type.
Widen the higher kinded representation to a Const type of the top type.
Attributes
- Source
- hkdGeneric.scala
Inherited methods
Converts Gen to the scala tuple representation.
Converts Gen to the scala tuple representation.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Converts Gen to the tuple representation.
Converts Gen to the tuple representation.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Given a index, return the name of the index.
Given a index, return the name of the index.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Returns the index of the field a name corresponds to.
Returns the index of the field a name corresponds to.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
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.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Converts the scala tuple representation to Gen.
Converts the scala tuple representation to Gen.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
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.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Converts the tuple representation to Gen.
Converts the tuple representation to Gen.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
The name of the A type.
Upcast an index to its bound.
Inherited fields
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Givens
Inherited givens
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Extensions
Extensions
Attributes
- Source
- hkdGeneric.scala
Exports
Inherited defined exports
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- hkdGeneric.scala
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- BoundedRepresentableK.scala
Access the indices or the representation of this type.
Access the indices or the representation of this type.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- RepresentableK.scala
Helper function that calls tabulateK with Const.
Helper function that calls tabulateK with Const.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- RepresentableK.scala
A higher kinded equivalent of cats.Representable.tabulate.
A higher kinded equivalent of cats.Representable.tabulate.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- RepresentableK.scala
A higher kinded equivalent of cats.Applicative.unit.
A higher kinded equivalent of cats.Applicative.unit.
Attributes
- Inherited from:
- GenHKDGeneric
- Source
- ApplicativeK.scala