pub struct BackwardBitWriter { /* private fields */ }Expand description
Backward bitstream writer matching C zstd’s BIT_CStream_t.
Bits accumulate LSB-first in a 64-bit container. flush_bits() writes
complete bytes to the output buffer in LE order. The decoder reads
from the END of this buffer (BitReaderReversed).
Key: bytes are written FORWARD. No reverse needed. The decoder naturally reads backward from the last byte.
Implementations§
Source§impl BackwardBitWriter
impl BackwardBitWriter
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackwardBitWriter
impl RefUnwindSafe for BackwardBitWriter
impl Send for BackwardBitWriter
impl Sync for BackwardBitWriter
impl Unpin for BackwardBitWriter
impl UnsafeUnpin for BackwardBitWriter
impl UnwindSafe for BackwardBitWriter
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