Struct ruzstd::huff0::HuffmanDecoder
source · pub struct HuffmanDecoder<'table> {
pub state: u64,
/* private fields */
}
Fields§
§state: u64
Implementations§
source§impl<'t> HuffmanDecoder<'t>
impl<'t> HuffmanDecoder<'t>
pub fn new(table: &'t HuffmanTable) -> HuffmanDecoder<'t>
pub fn reset(self, new_table: Option<&'t HuffmanTable>)
pub fn decode_symbol(&mut self) -> u8
pub fn init_state( &mut self, br: &mut BitReaderReversed<'_> ) -> Result<u8, HuffmanDecoderError>
pub fn next_state( &mut self, br: &mut BitReaderReversed<'_> ) -> Result<u8, HuffmanDecoderError>
Auto Trait Implementations§
impl<'table> RefUnwindSafe for HuffmanDecoder<'table>
impl<'table> Send for HuffmanDecoder<'table>
impl<'table> Sync for HuffmanDecoder<'table>
impl<'table> Unpin for HuffmanDecoder<'table>
impl<'table> UnwindSafe for HuffmanDecoder<'table>
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