Module typenum::marker_traits
[−]
[src]
These are all of the marker traits used in typenum. Note that the definition here for marker traits is slightly different than the conventional one --- we include traits with functions that convert a type to the corresponding value.
For example, the Integer
trait includes the function (among others) fn to_i32() -> i32
so that one can do this:
use typenum::{N42, Integer}; assert_eq!(-42, N42::to_i32());
Traits
Bit |
The marker trait for compile time bits. |
Integer |
The marker trait for compile time signed integers. |
NonZero |
A marker trait to designate that a type is not zero. All number types in this
crate implement |
Ord |
A Marker trait for the types |
Unsigned |
The marker trait for compile time unsigned integers. |