Trait typenum::marker_traits::Integer
source · pub trait Integer: Sealed + Copy + Default + 'static {
const I8: i8;
const I16: i16;
const I32: i32;
const I64: i64;
const ISIZE: isize;
// Required methods
fn to_i8() -> i8;
fn to_i16() -> i16;
fn to_i32() -> i32;
fn to_i64() -> i64;
fn to_isize() -> isize;
}
Expand description
The marker trait for compile time signed integers.
Example
use typenum::{Integer, P3};
assert_eq!(P3::to_i32(), 3);
assert_eq!(P3::I32, 3);