SealedTrait

magnolia1.SealedTrait$
See theSealedTrait companion class
object SealedTrait

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

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

Supertypes
trait Serializable
trait PartialFunction[Type, SType & Type]
trait Type => SType & Type
class Object
trait Matchable
class Any
Show all
class SubtypeValue[Typeclass[_], Type, S](val subtype: Subtype[Typeclass, Type, S], v: Type)

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[Typeclass[_], Type](typeInfo: TypeInfo, subtypes: IArray[Subtype[Typeclass, Type, _]], annotations: IArray[Any], typeAnnotations: IArray[Any], isEnum: Boolean): SealedTrait[Typeclass, Type]