pub struct BigEndian;
Expand description
Big-endian, or most significant bits first
Trait Implementations§
Source§impl Endianness for BigEndian
impl Endianness for BigEndian
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 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 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<'life0, 'async_trait, R, S>(
r: &'life0 mut R,
bits: u32,
) -> Pin<Box<dyn Future<Output = Result<S>> + Send + 'async_trait>>where
R: BitRead + 'async_trait,
S: SignedNumeric + 'async_trait,
'life0: 'async_trait,
fn read_signed<'life0, 'async_trait, R, S>(
r: &'life0 mut R,
bits: u32,
) -> Pin<Box<dyn Future<Output = Result<S>> + Send + 'async_trait>>where
R: BitRead + 'async_trait,
S: SignedNumeric + 'async_trait,
'life0: 'async_trait,
Reads signed value from reader in this endianness
Source§fn write_signed<'life0, 'async_trait, W, S>(
w: &'life0 mut W,
bits: u32,
value: S,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: BitWrite + 'async_trait,
S: SignedNumeric + 'async_trait,
'life0: 'async_trait,
fn write_signed<'life0, 'async_trait, W, S>(
w: &'life0 mut W,
bits: u32,
value: S,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: BitWrite + 'async_trait,
S: SignedNumeric + 'async_trait,
'life0: 'async_trait,
Writes signed value to writer in this endianness
impl Copy for BigEndian
Auto Trait Implementations§
impl Freeze for BigEndian
impl RefUnwindSafe for BigEndian
impl Send for BigEndian
impl Sync for BigEndian
impl Unpin for BigEndian
impl UnwindSafe for BigEndian
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