pub struct WordWriter { /* private fields */ }Trait Implementations§
Source§impl Default for WordWriter
impl Default for WordWriter
Source§fn default() -> WordWriter
fn default() -> WordWriter
Returns the “default value” for a type. Read more
Source§impl Write for WordWriter
impl Write for WordWriter
Source§fn write_bits(&mut self, word: Word, bits: usize)
fn write_bits(&mut self, word: Word, bits: usize)
Writes up to 64 bits. The index of
word’s most significant 1 must be < bits.
bits must be in range 0..=64.Source§fn write_bytes(&mut self, bytes: &[u8])
fn write_bytes(&mut self, bytes: &[u8])
Writes
bytes.Source§fn write_zeros(&mut self, bits: usize)
fn write_zeros(&mut self, bits: usize)
Writes up to 64 zero bits. Might be faster than
writer.write_bits(0, bits).Source§fn num_bits_written(&self) -> usize
fn num_bits_written(&self) -> usize
Number of bits that were written to the Writer
Source§fn write_false(&mut self)
fn write_false(&mut self)
Writes
false. Might be faster than writer.write_bit(false).Auto Trait Implementations§
impl Freeze for WordWriter
impl RefUnwindSafe for WordWriter
impl Send for WordWriter
impl Sync for WordWriter
impl Unpin for WordWriter
impl UnwindSafe for WordWriter
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