pub trait BinaryInt: Copy + AddAssign<Self> + Eq + Debug {
    // Required methods
    fn zero() -> Self;
    fn bits(self) -> Bits<Self> ;
    fn test(self, shift: u32) -> bool;
    fn push(&mut self, bit: bool);
    fn pop(&mut self);
}

Required Methods§

source

fn zero() -> Self

source

fn bits(self) -> Bits<Self>

source

fn test(self, shift: u32) -> bool

source

fn push(&mut self, bit: bool)

source

fn pop(&mut self)

Implementations on Foreign Types§

source§

impl BinaryInt for u8

source§

fn zero() -> Self

source§

fn bits(self) -> Bits<Self>

source§

fn test(self, shift: u32) -> bool

source§

fn push(&mut self, bit: bool)

source§

fn pop(&mut self)

source§

impl BinaryInt for u16

source§

fn zero() -> Self

source§

fn bits(self) -> Bits<Self>

source§

fn test(self, shift: u32) -> bool

source§

fn push(&mut self, bit: bool)

source§

fn pop(&mut self)

source§

impl BinaryInt for u64

source§

fn zero() -> Self

source§

fn bits(self) -> Bits<Self>

source§

fn test(self, shift: u32) -> bool

source§

fn push(&mut self, bit: bool)

source§

fn pop(&mut self)

source§

impl BinaryInt for usize

source§

fn zero() -> Self

source§

fn bits(self) -> Bits<Self>

source§

fn test(self, shift: u32) -> bool

source§

fn push(&mut self, bit: bool)

source§

fn pop(&mut self)

source§

impl BinaryInt for u32

source§

fn zero() -> Self

source§

fn bits(self) -> Bits<Self>

source§

fn test(self, shift: u32) -> bool

source§

fn push(&mut self, bit: bool)

source§

fn pop(&mut self)

source§

impl BinaryInt for u128

source§

fn zero() -> Self

source§

fn bits(self) -> Bits<Self>

source§

fn test(self, shift: u32) -> bool

source§

fn push(&mut self, bit: bool)

source§

fn pop(&mut self)

Implementors§