[][src]Trait int::UInt

pub trait UInt: AsPrimitive<u8> + PrimInt + Unsigned + AddAssign + DivAssign + Shl<u8, Output = Self> + ShlAssign<u8> + Shr<u8, Output = Self> + ShrAssign<u8> + SubAssign<Self> + Display {
    const _0: Self;
    const _1: Self;
    const BIT_COUNT: u8;
    const MAX_VALUE: Self;

    fn from_u8(v: u8) -> Self;
}

Examples

use int::UInt;
assert_eq!(u8::BIT_COUNT, 8);
assert_eq!(u16::BIT_COUNT, 16);
assert_eq!(u32::BIT_COUNT, 32);
assert_eq!(u64::BIT_COUNT, 64);
assert_eq!(u128::BIT_COUNT, 128);

Associated Constants

const _0: Self

const _1: Self

const BIT_COUNT: u8

const MAX_VALUE: Self

Loading content...

Required methods

fn from_u8(v: u8) -> Self

Loading content...

Implementations on Foreign Types

impl UInt for u8[src]

const BIT_COUNT: u8[src]

impl UInt for u16[src]

const BIT_COUNT: u8[src]

impl UInt for u32[src]

const BIT_COUNT: u8[src]

impl UInt for u64[src]

const BIT_COUNT: u8[src]

impl UInt for u128[src]

const BIT_COUNT: u8[src]

impl UInt for usize[src]

const BIT_COUNT: u8[src]

Loading content...

Implementors

Loading content...