pub struct LittleEndian;
Expand description
Little-endian, or least significant bits first
Trait Implementations§
Source§impl Clone for LittleEndian
impl Clone for LittleEndian
Source§fn clone(&self) -> LittleEndian
fn clone(&self) -> LittleEndian
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LittleEndian
impl Debug for LittleEndian
Source§impl Endianness for LittleEndian
impl Endianness for LittleEndian
Source§fn 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.
Source§fn push_fixed<const B: u32, N>(queue: &mut BitQueue<Self, N>, value: N)where
N: Numeric,
fn push_fixed<const B: u32, N>(queue: &mut BitQueue<Self, N>, value: N)where
N: Numeric,
Pushes the given constant number of bits and value onto an accumulator
with the given bits and value.
Source§fn pop<N>(queue: &mut BitQueue<Self, N>, bits: u32) -> Nwhere
N: Numeric,
fn pop<N>(queue: &mut BitQueue<Self, N>, bits: u32) -> Nwhere
N: Numeric,
Pops a value with the given number of bits from an accumulator
with the given bits and value.
Source§fn pop_fixed<const B: u32, N>(queue: &mut BitQueue<Self, N>) -> Nwhere
N: Numeric,
fn pop_fixed<const B: u32, N>(queue: &mut BitQueue<Self, N>) -> Nwhere
N: Numeric,
Pops a value with the given number of constant bits
from an accumulator with the given bits and value.
Source§fn 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.
Source§fn next_zeros<N>(queue: &BitQueue<Self, N>) -> u32where
N: Numeric,
fn next_zeros<N>(queue: &BitQueue<Self, N>) -> u32where
N: Numeric,
Returns the next number of 0 bits from an accumulator
with the given bits and value.
Source§fn next_ones<N>(queue: &BitQueue<Self, N>) -> u32where
N: Numeric,
fn next_ones<N>(queue: &BitQueue<Self, N>) -> u32where
N: Numeric,
Returns the next number of 1 bits from an accumulator
with the given bits and value.
Source§fn 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
Source§fn read_signed_fixed<R, const B: u32, S>(r: &mut R) -> Result<S>where
R: BitRead,
S: SignedNumeric,
fn read_signed_fixed<R, const B: u32, S>(r: &mut R) -> Result<S>where
R: BitRead,
S: SignedNumeric,
Reads signed value from reader in this endianness
Source§fn 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
Source§fn write_signed_fixed<W, const B: u32, S>(w: &mut W, value: S) -> Result<()>where
W: BitWrite,
S: SignedNumeric,
fn write_signed_fixed<W, const B: u32, S>(w: &mut W, value: S) -> Result<()>where
W: BitWrite,
S: SignedNumeric,
Writes signed value to writer in this endianness
Source§fn read_primitive<R, V>(r: &mut R) -> Result<V>
fn read_primitive<R, V>(r: &mut R) -> Result<V>
Reads convertable numeric value from reader in this endianness
Source§fn write_primitive<W, V>(w: &mut W, value: V) -> Result<()>
fn write_primitive<W, V>(w: &mut W, value: V) -> Result<()>
Writes convertable numeric value to writer in this endianness
Source§fn read_numeric<R, V>(r: R) -> Result<V>
fn read_numeric<R, V>(r: R) -> Result<V>
Reads entire numeric value from reader in this endianness
impl Copy for LittleEndian
Auto Trait Implementations§
impl Freeze for LittleEndian
impl RefUnwindSafe for LittleEndian
impl Send for LittleEndian
impl Sync for LittleEndian
impl Unpin for LittleEndian
impl UnwindSafe for LittleEndian
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)