Trait uints::Common[][src]

pub trait Common: Default + PartialOrd + Debug {
    type Array;

    const ZERO: Self;
    const ONE: Self;
    const MAX: Self;
    const BITS: u8;

    fn leading_zeros(&self) -> u8;
fn trailing_zeros(&self) -> u8;
fn count_ones(&self) -> u8;
fn lsb0_array(&self) -> Self::Array; }

Associated Types

Loading content...

Associated Constants

const ZERO: Self[src]

const ONE: Self[src]

const MAX: Self[src]

const BITS: u8[src]

Loading content...

Required methods

fn leading_zeros(&self) -> u8[src]

fn trailing_zeros(&self) -> u8[src]

fn count_ones(&self) -> u8[src]

fn lsb0_array(&self) -> Self::Array[src]

Loading content...

Implementations on Foreign Types

impl Common for u8[src]

type Array = [u8; 1]

impl Common for u32[src]

type Array = [u8; 4]

impl Common for u64[src]

type Array = [u8; 8]

impl Common for u128[src]

type Array = [u8; 16]

Loading content...

Implementors

Loading content...