pub struct BitWriter<'a, B, const MSB: bool> { /* private fields */ }Expand description
A bit cursor that appends to a Buffer.
Unused bits in the last byte are zero.
Implementations§
Source§impl<'a, B: Buffer, const MSB: bool> BitWriter<'a, B, MSB>
impl<'a, B: Buffer, const MSB: bool> BitWriter<'a, B, MSB>
Sourcepub fn new(out: &'a mut B) -> Self
pub fn new(out: &'a mut B) -> Self
A cursor at the end of out.
MSB is true to fill the top of each byte first.
Trait Implementations§
Auto Trait Implementations§
impl<'a, B, const MSB: bool> !UnwindSafe for BitWriter<'a, B, MSB>
impl<'a, B, const MSB: bool> Freeze for BitWriter<'a, B, MSB>
impl<'a, B, const MSB: bool> RefUnwindSafe for BitWriter<'a, B, MSB>where
&'a mut B: RefUnwindSafe,
impl<'a, B, const MSB: bool> Send for BitWriter<'a, B, MSB>
impl<'a, B, const MSB: bool> Sync for BitWriter<'a, B, MSB>
impl<'a, B, const MSB: bool> Unpin for BitWriter<'a, B, MSB>
impl<'a, B, const MSB: bool> UnsafeUnpin for BitWriter<'a, B, MSB>where
&'a mut B: UnsafeUnpin,
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