pub struct MsbBitStream<T: Read> {
pub m_input: T,
m_bits: u32,
pub m_cached_bits: u32,
}Available on crate feature
utils-bit-stream only.Expand description
A most significant bit (MSB) bit stream reader.
Fields§
§m_input: TThe input stream to read from.
m_bits: u32§m_cached_bits: u32The number of bits currently cached.
Implementations§
Source§impl<T: Read> MsbBitStream<T>
impl<T: Read> MsbBitStream<T>
Auto Trait Implementations§
impl<T> Freeze for MsbBitStream<T>where
T: Freeze,
impl<T> RefUnwindSafe for MsbBitStream<T>where
T: RefUnwindSafe,
impl<T> Send for MsbBitStream<T>where
T: Send,
impl<T> Sync for MsbBitStream<T>where
T: Sync,
impl<T> Unpin for MsbBitStream<T>where
T: Unpin,
impl<T> UnwindSafe for MsbBitStream<T>where
T: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more