pub struct HuffmanSpec {
pub class: u8,
pub id: u8,
pub bits: [u8; 16],
pub huffval: Vec<u8>,
}Expand description
Parsed Huffman table specification.
Fields§
§class: u8Table class: 0 = DC, 1 = AC.
id: u8Table ID (0–3).
bits: [u8; 16]Number of codes of each length (1–16).
huffval: Vec<u8>Symbol values in order of increasing code length.
Trait Implementations§
Source§impl Clone for HuffmanSpec
impl Clone for HuffmanSpec
Source§fn clone(&self) -> HuffmanSpec
fn clone(&self) -> HuffmanSpec
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 HuffmanSpec
impl RefUnwindSafe for HuffmanSpec
impl Send for HuffmanSpec
impl Sync for HuffmanSpec
impl Unpin for HuffmanSpec
impl UnsafeUnpin for HuffmanSpec
impl UnwindSafe for HuffmanSpec
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