Trait prim_traits::Int[][src]

pub trait Int: Sized {
    type Unsigned: Int;
    type Signed: Int;

    const MIN: Self;
    const MAX: Self;
    const NUM_BITS: usize;

    fn checked_add(self, rhs: Self) -> Option<Self>;
}

Associated Types

Associated Constants

Required Methods

Implementations on Foreign Types

impl Int for u8
[src]

impl Int for i8
[src]

impl Int for u16
[src]

impl Int for i16
[src]

impl Int for u32
[src]

impl Int for i32
[src]

impl Int for u64
[src]

impl Int for i64
[src]

impl Int for u128
[src]

impl Int for i128
[src]

Implementors