AutoSum

mill.api.Mirrors.AutoSum
final class AutoSum[T, L <: String, Ns <: Tuple, Ts <: Tuple](ord: T => Int) extends Sum

Attributes

Source
Mirrors.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Members list

Type members

Types

type MirroredElemLabels = Ns

The names of the product elements

The names of the product elements

Attributes

Source
Mirrors.scala
type MirroredElemTypes = Ts

Attributes

Source
Mirrors.scala
type MirroredLabel = L

The name of the type

The name of the type

Attributes

Source
Mirrors.scala
type MirroredMonoType = T

The mirrored *-type

The mirrored *-type

Attributes

Source
Mirrors.scala
type MirroredType = T

Attributes

Source
Mirrors.scala

Value members

Concrete methods

override def ordinal(p: T): Int

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

Attributes

Definition Classes
Sum
Source
Mirrors.scala