Subtype
magnolia1.SealedTrait$.Subtype
class Subtype[Typeclass[_], Type, SType](val typeInfo: TypeInfo, val annotations: IArray[Any], val inheritedAnnotations: IArray[Any], val typeAnnotations: IArray[Any], val isObject: Boolean, val index: Int, callByNeed: CallByNeed[Typeclass[SType]], isType: Type => Boolean, asType: Type => SType & Type) extends PartialFunction[Type, SType & Type], Serializable
Type parameters
- SType
-
the type of the subtype, eg 'Diamonds' or 'Clubs'
- Type
-
the type of the Sealed Trait or Scala 3 Enum, eg 'Suit'
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait PartialFunction[Type, SType & Type]trait Type => SType & Typeclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Constructors
def this(typeInfo: TypeInfo, annotations: IArray[Any], typeAnnotations: IArray[Any], isObject: Boolean, index: Int, callByNeed: CallByNeed[Typeclass[SType]], isType: Type => Boolean, asType: Type => SType & Type)
Concrete methods
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Function1 -> Any
Attributes
- Returns
-
the already-constructed typeclass instance for this subtype
Inherited methods
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
PartialFunction -> Function1
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- Function1
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Concrete fields
In this article