Trait bitstream_io::Endianness
[−]
[src]
pub trait Endianness { fn push<N>(bits_acc: &mut u32, value_acc: &mut N, bits: u32, value: N) where N: Numeric; fn pop<N>(bits_acc: &mut u32, value_acc: &mut N, bits: u32) -> N where N: Numeric; fn drop<N>(bits_acc: &mut u32, value_acc: &mut N, bits: u32) where N: Numeric; fn next_zeros<N>(bits: u32, value: N) -> u32 where N: Numeric; fn next_ones<N>(bits: u32, value: N) -> u32 where N: Numeric; }
A stream's endianness, or byte order, for determining how bits should be read.
Required Methods
fn push<N>(bits_acc: &mut u32, value_acc: &mut N, bits: u32, value: N) where N: Numeric
fn pop<N>(bits_acc: &mut u32, value_acc: &mut N, bits: u32) -> N where N: Numeric
fn drop<N>(bits_acc: &mut u32, value_acc: &mut N, bits: u32) where N: Numeric
fn next_zeros<N>(bits: u32, value: N) -> u32 where N: Numeric
fn next_ones<N>(bits: u32, value: N) -> u32 where N: Numeric
Implementors
impl Endianness for BigEndian
impl Endianness for LittleEndian