Sum
scala.deriving.Mirror.Sum
The Mirror for a sum type.
Attributes
- Source
- Mirror.scala
- Graph
-
- Supertypes
- Self type
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The name of the type.
type MirroredMonoType
The mirrored *-type.
Value members
Abstract methods
The ordinal number of the case class of x. For enums, ordinal(x) == x.ordinal.
The ordinal number of the case class of x. For enums, ordinal(x) == x.ordinal.
Value parameters
- x
-
the instance of the sum type whose ordinal is returned
Attributes
- Source
- Mirror.scala
In this article