pub struct HuffmanCodeTable {
pub codes: Vec<(u32, u8)>,
}Expand description
Lookup table: for each symbol 0..=255, (code_bits, code_length).
Symbols that do not appear have code_length == 0.
Fields§
§codes: Vec<(u32, u8)>Indexed by symbol value (0..=255). (code_bits, code_length).
Implementations§
Source§impl HuffmanCodeTable
impl HuffmanCodeTable
Trait Implementations§
Source§impl Clone for HuffmanCodeTable
impl Clone for HuffmanCodeTable
Source§fn clone(&self) -> HuffmanCodeTable
fn clone(&self) -> HuffmanCodeTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HuffmanCodeTable
impl RefUnwindSafe for HuffmanCodeTable
impl Send for HuffmanCodeTable
impl Sync for HuffmanCodeTable
impl Unpin for HuffmanCodeTable
impl UnsafeUnpin for HuffmanCodeTable
impl UnwindSafe for HuffmanCodeTable
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