Struct weezl::encode::EncodeState
source · struct EncodeState<B: Buffer> {
min_size: u8,
tree: Tree,
has_ended: bool,
is_tiff: bool,
current_code: u16,
clear_code: u16,
buffer: B,
}
Fields§
§min_size: u8
The configured minimal code size.
tree: Tree
The current encoding symbol tree.
has_ended: bool
If we have pushed the end code.
is_tiff: bool
If tiff then bumps are a single code sooner.
current_code: u16
The code corresponding to the currently read characters.
clear_code: u16
The clear code for resetting the dictionary.
buffer: B
The bit buffer for encoding.
Implementations§
Trait Implementations§
source§impl<B: Buffer> Stateful for EncodeState<B>
impl<B: Buffer> Stateful for EncodeState<B>
Auto Trait Implementations§
impl<B> Freeze for EncodeState<B>where
B: Freeze,
impl<B> RefUnwindSafe for EncodeState<B>where
B: RefUnwindSafe,
impl<B> Send for EncodeState<B>where
B: Send,
impl<B> Sync for EncodeState<B>where
B: Sync,
impl<B> Unpin for EncodeState<B>where
B: Unpin,
impl<B> UnwindSafe for EncodeState<B>where
B: 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