pub struct HuffmanTableEntry {
pub symbol: u8,
pub num_bits: u8,
}Expand description
A single entry in a Huffman decoding table.
Fields§
§symbol: u8The symbol this code decodes to.
num_bits: u8Number of bits in the code.
Implementations§
Trait Implementations§
Source§impl Clone for HuffmanTableEntry
impl Clone for HuffmanTableEntry
Source§fn clone(&self) -> HuffmanTableEntry
fn clone(&self) -> HuffmanTableEntry
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 moreSource§impl Debug for HuffmanTableEntry
impl Debug for HuffmanTableEntry
Source§impl Default for HuffmanTableEntry
impl Default for HuffmanTableEntry
Source§fn default() -> HuffmanTableEntry
fn default() -> HuffmanTableEntry
Returns the “default value” for a type. Read more
Source§impl PartialEq for HuffmanTableEntry
impl PartialEq for HuffmanTableEntry
impl Copy for HuffmanTableEntry
impl Eq for HuffmanTableEntry
impl StructuralPartialEq for HuffmanTableEntry
Auto Trait Implementations§
impl Freeze for HuffmanTableEntry
impl RefUnwindSafe for HuffmanTableEntry
impl Send for HuffmanTableEntry
impl Sync for HuffmanTableEntry
impl Unpin for HuffmanTableEntry
impl UnwindSafe for HuffmanTableEntry
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