Struct bitstream_io::LittleEndian
source · [−]pub struct LittleEndian;
Expand description
Little-endian, or least significant bits first
Trait Implementations
sourceimpl Clone for LittleEndian
impl Clone for LittleEndian
sourcefn clone(&self) -> LittleEndian
fn clone(&self) -> LittleEndian
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Endianness for LittleEndian
impl Endianness for LittleEndian
sourcefn push<N>(queue: &mut BitQueue<Self, N>, bits: u32, value: N) where
N: Numeric,
fn push<N>(queue: &mut BitQueue<Self, N>, bits: u32, value: N) where
N: Numeric,
Pushes the given bits and value onto an accumulator with the given bits and value. Read more
sourcefn pop<N>(queue: &mut BitQueue<Self, N>, bits: u32) -> N where
N: Numeric,
fn pop<N>(queue: &mut BitQueue<Self, N>, bits: u32) -> N where
N: Numeric,
Pops a value with the given number of bits from an accumulator with the given bits and value. Read more
sourcefn drop<N>(queue: &mut BitQueue<Self, N>, bits: u32) where
N: Numeric,
fn drop<N>(queue: &mut BitQueue<Self, N>, bits: u32) where
N: Numeric,
Drops the given number of bits from an accumulator with the given bits and value. Read more
sourcefn next_zeros<N>(queue: &BitQueue<Self, N>) -> u32 where
N: Numeric,
fn next_zeros<N>(queue: &BitQueue<Self, N>) -> u32 where
N: Numeric,
Returns the next number of 0 bits from an accumulator with the given bits and value. Read more
sourcefn next_ones<N>(queue: &BitQueue<Self, N>) -> u32 where
N: Numeric,
fn next_ones<N>(queue: &BitQueue<Self, N>) -> u32 where
N: Numeric,
Returns the next number of 1 bits from an accumulator with the given bits and value. Read more
sourcefn read_signed<R, S>(r: &mut R, bits: u32) -> Result<S> where
R: BitRead,
S: SignedNumeric,
fn read_signed<R, S>(r: &mut R, bits: u32) -> Result<S> where
R: BitRead,
S: SignedNumeric,
Reads signed value from reader in this endianness
sourcefn write_signed<W, S>(w: &mut W, bits: u32, value: S) -> Result<()> where
W: BitWrite,
S: SignedNumeric,
fn write_signed<W, S>(w: &mut W, bits: u32, value: S) -> Result<()> where
W: BitWrite,
S: SignedNumeric,
Writes signed value to writer in this endianness
sourcefn read_numeric<R, N>(r: R) -> Result<N> where
R: Read,
N: Numeric,
fn read_numeric<R, N>(r: R) -> Result<N> where
R: Read,
N: Numeric,
Reads entire numeric value from reader in this endianness
impl Copy for LittleEndian
Auto Trait Implementations
impl RefUnwindSafe for LittleEndian
impl Send for LittleEndian
impl Sync for LittleEndian
impl Unpin for LittleEndian
impl UnwindSafe for LittleEndian
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more