pub trait UInt: Default + Copy + BitXorAssign + BitXor<Output = Self> + Shl<u32, Output = Self> + Shr<u32, Output = Self> {
    const BITS: u32;

    // Required methods
    fn as_usize(self) -> usize;
    fn one() -> Self;
}

Required Associated Constants§

Required Methods§

source

fn as_usize(self) -> usize

source

fn one() -> Self

Implementations on Foreign Types§

source§

impl UInt for u32

source§

const BITS: u32 = 32u32

source§

fn as_usize(self) -> usize

source§

fn one() -> Self

source§

impl UInt for u64

source§

const BITS: u32 = 64u32

source§

fn as_usize(self) -> usize

source§

fn one() -> Self

source§

impl UInt for usize

source§

const BITS: u32 = 64u32

source§

fn as_usize(self) -> usize

source§

fn one() -> Self

Implementors§