Trait typenum::marker_traits::Integer [] [src]

pub trait Integer {
    fn to_i8() -> i8;
    fn to_i16() -> i16;
    fn to_i32() -> i32;
    fn to_i64() -> i64;
    fn to_isize() -> isize;
}

The marker trait for compile time signed integers.

This trait should not be implemented for anything outside this crate.

Example

use typenum::{P3, Integer};

assert_eq!(P3::to_i32(), 3);

Required Methods

fn to_i8() -> i8

fn to_i16() -> i16

fn to_i32() -> i32

fn to_i64() -> i64

fn to_isize() -> isize

Implementors