[−][src]Struct ccitt_t4_t6::bit_iter::BitWriter
A bitwise writer
Implementations
impl BitWriter
[src]
pub fn new() -> Self
[src]
Creates a new instance
pub fn _with_capacity(capacity: usize) -> Self
[src]
Creates a new instance with the given capacity of bits
pub fn write(&mut self, b: bool)
[src]
Write a single bit
pub fn write_bits(&mut self, val: usize, off: u8)
[src]
Write {off} bits of {val}
pub fn flush(&mut self)
[src]
flush the output buffer
pub fn done(self) -> Vec<u8>
[src]
Flush and return the buffer
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BitWriter
impl Send for BitWriter
impl Sync for BitWriter
impl Unpin for BitWriter
impl UnwindSafe for BitWriter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,