compileTime
Methods and types to ease compile-time operations.
Attributes
- Source
- compileTime.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
compileTime.type
Members list
Type members
Types
Polymorphic modulo.
Polymorphic modulo.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
Attributes
- Source
- compileTime.scala
Polymorphic multiplication.
Polymorphic multiplication.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
Attributes
- Source
- compileTime.scala
Polymorphic addition.
Polymorphic addition.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
Attributes
- Source
- compileTime.scala
Polymorphic strict subtraction.
Polymorphic strict subtraction.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
Attributes
- Source
- compileTime.scala
Polymorphic division.
Polymorphic division.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
Attributes
- Source
- compileTime.scala
Polymorphic strict inferiority.
Polymorphic strict inferiority.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
Attributes
- Source
- compileTime.scala
Polymorphic non-strict inferiority.
Polymorphic non-strict inferiority.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
Attributes
- Source
- compileTime.scala
Polymorphic strict superiority.
Polymorphic strict superiority.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
Attributes
- Source
- compileTime.scala
Polymorphic non-strict superiority.
Polymorphic non-strict superiority.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
Attributes
- Source
- compileTime.scala
Convert the two given numerical types to the least common parent.
Convert the two given numerical types to the least common parent.
Type parameters
- A
-
the first type to convert.
- B
-
the second type to convert.
Attributes
- Source
- compileTime.scala
Attributes
- Source
- compileTime.scala
Polymorphic numerical binary operator. Takes the right implementation according to the least common type of A
and B
.
Polymorphic numerical binary operator. Takes the right implementation according to the least common type of A
and B
.
Type parameters
- A
-
the left member of this operation.
- B
-
the right member of this operation.
- DoubleOp
-
the operation to apply if both types can be converted to
Double
. - FloatOp
-
the operation to apply if both types can be converted to
Float
. - IntOp
-
the operation to apply if both types can be converted to
Int
. - LongOp
-
the operation to apply if both types can be converted to
Long
.
Attributes
- Source
- compileTime.scala
Polymorphic ToDouble
.
Polymorphic ToDouble
.
Type parameters
- A
-
the constant type to cast.
Attributes
- Source
- compileTime.scala
Polymorphic ToLong
.
Polymorphic ToLong
.
Type parameters
- A
-
the constant type to cast.
Attributes
- Source
- compileTime.scala
The zero number of the given type.
The zero number of the given type.
Type parameters
- A
-
the numerical primitive type.
Attributes
- Source
- compileTime.scala
Value members
Concrete methods
Attributes
- Source
- compileTime.scala
Get the Double
value of the given type.
Get the Double
value of the given type.
Type parameters
- A
-
the type to convert to
Double
.
Attributes
- Returns
-
the String representation of the given type. Equivalent to
constValue[ToDouble[A]]
. - Source
- compileTime.scala
Get the Long
value of the given type.
Get the Long
value of the given type.
Type parameters
- A
-
the type to convert to
Long
.
Attributes
- Returns
-
the Long representation of the given type. Equivalent to
constValue[ToLong[A]]
. - Source
- compileTime.scala
Get the String
value of the given type.
Get the String
value of the given type.
Type parameters
- A
-
the type to convert to
String
.
Attributes
- Returns
-
the String representation of the given type. Equivalent to
constValue[ToString[A]]
. - Source
- compileTime.scala
Extensions
Extensions
Attributes
- Source
- compileTime.scala