object nat
- Alphabetic
- By Inheritance
- nat
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
BoundedRange[A <: Bound, B <: Bound] extends DepFn0 with Serializable
Type class witnessing that
Out
is an HList ofNat
numbers ranging fromA
toB
.Type class witnessing that
Out
is an HList ofNat
numbers ranging fromA
toB
.This differs from the
Range
type class in that it accepts another type class,Bound
, at both the start and end of the range (instead of bareNat
types). This allows the flexibility to specify inclusive or exclusive range boundaries for either end of the range.Reversed ranges are also possible (i.e. starting the range with a larger number than it ends with), and results in an HList that counts from the beginning of the range _down to_ the end of the range.
-
trait
Diff[A <: Nat, B <: Nat] extends Serializable
Type class witnessing that
C
is the difference ofA
andB
. -
trait
Div[A <: Nat, B <: Nat] extends Serializable
Type class witnessing that
Out
is the quotient ofA
andB
. - trait GCD[A <: Nat, B <: Nat] extends Serializable
-
type
GT[A <: Nat, B <: Nat] = LT[B, A]
Type class witnessing that
A
is greater thanB
. -
type
GTEq[A <: Nat, B <: Nat] = LTEq[B, A]
Type class witnessing that
A
is greater than or equal toB
. -
trait
LCM[A <: Nat, B <: Nat] extends Serializable
Type class for calculating the Least Common Multiple
-
trait
LT[A <: Nat, B <: Nat] extends Serializable
Type class witnessing that
A
is less thanB
. - trait LT0 extends AnyRef
-
trait
LTEq[A <: Nat, B <: Nat] extends Serializable
Type class witnessing that
A
is less than or equal toB
. - trait LTEq0 extends AnyRef
-
trait
LowPriorityGCD extends AnyRef
Type class implementing Euclidean algorithm for calculating the GCD
-
trait
Max[A <: Nat, B <: Nat] extends Serializable
Type class witnessing that
Out
isA
maxB
. -
trait
Min[A <: Nat, B <: Nat] extends Serializable
Type class witnessing that
Out
isA
minB
. -
trait
Mod[A <: Nat, B <: Nat] extends Serializable
Typeclass witnessing that
Out
isA
modB
. -
trait
Pow[N <: Nat, X <: Nat] extends Serializable
Type class witnessing that
Out
isX
raised to the powerN
. -
trait
Pred[A <: Nat] extends Serializable
Type class witnessing that
B
is the predecessor ofA
. -
trait
Prod[A <: Nat, B <: Nat] extends Serializable
Type class witnessing that
C
is the product ofA
andB
. -
trait
Range[A <: Nat, B <: Nat] extends DepFn0 with Serializable
Type class witnessing that
Out
is rangeA
toB
, inclusive ofA
and exclusive ofB
. -
trait
Sum[A <: Nat, B <: Nat] extends Serializable
Type class witnessing that
C
is the sum ofA
andB
. -
trait
ToInt[N <: Nat] extends Serializable
Type class supporting conversion of type-level Nats to value level Ints.
- class ToIntMacros extends CaseClassMacros
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object BoundedRange extends Serializable
- object Diff extends Serializable
- object Div extends Serializable
- object GCD extends LowPriorityGCD with Serializable
- object GT
- object GTEq
- object LCM extends Serializable
- object LT extends LT0 with Serializable
- object LTEq extends LTEq0 with Serializable
- object Max extends Serializable
- object Min extends Serializable
- object Mod extends Serializable
- object Pow extends Serializable
- object Pred extends Serializable
- object Prod extends Serializable
- object Range extends Serializable
- object Sum extends Serializable
- object ToInt extends Serializable