pub struct HuffmanDecoder { /* private fields */ }Implementations§
Source§impl HuffmanDecoder
impl HuffmanDecoder
pub fn new() -> Self
pub fn initialize( lengths: &[isize], max_code_length: isize, zeros: bool, ) -> Result<Self, InitializationError>
pub fn add_value( &mut self, value: i32, code: u32, length: usize, repeat_pos: usize, ) -> Result<(), InitializationError>
pub fn add_value_lf( &mut self, value: i32, code: u32, length: usize, repeat_pos: usize, ) -> Result<(), InitializationError>
pub fn next_symbol<R: Read + Seek, E: Endianness>( &mut self, input: &mut BitReader<R, E>, ) -> Result<i32>
pub fn make_table(&mut self, little_endian: bool)
Trait Implementations§
Source§impl Clone for HuffmanDecoder
impl Clone for HuffmanDecoder
Source§fn clone(&self) -> HuffmanDecoder
fn clone(&self) -> HuffmanDecoder
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 HuffmanDecoder
impl RefUnwindSafe for HuffmanDecoder
impl Send for HuffmanDecoder
impl Sync for HuffmanDecoder
impl Unpin for HuffmanDecoder
impl UnsafeUnpin for HuffmanDecoder
impl UnwindSafe for HuffmanDecoder
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