interface Integer
pub interface Integer :: [
Num,
TotalOrder,
Hashable,
BitAnd<Out = Self>,
BitOr<Out = Self>,
BitXor<Out = Self>,
BitNot<Out = Self>,
Shl<Out = Self>,
Shr<Out = Self>
]
Conforms to Num, TotalOrder, Hashable, BitAnd<Out = Self>, BitOr<Out = Self>, BitXor<Out = Self>, BitNot<Out = Self>, Shl<Out = Self>, Shr<Out = Self>.
The eight integer types: their range, a total order, a hash, the bit operators.
Methods
static fn exact<T :: [Integer]>(v: T): ?Self
Returns v as this type where it fits, null where it does not.
static fn clamping<T :: [Integer]>(v: T): Self
Returns v as this type, held at min or max where it does not fit.