Enum chd::huffman::HuffmanError
source · pub enum HuffmanError {
TooManyBits,
InvalidData,
InputBufferTooSmall,
OutputBufferTooSmall,
InternalInconsistency,
TooManyContexts,
}
Available on
huffman_api
only.Expand description
Error type for Huffman decoding.
Variants§
TooManyBits
Too many bits used to initialize the decoder or read a value.
InvalidData
The provided bitstream does not contain a valid MAME static Huffman tree.
InputBufferTooSmall
The input buffer is too small to read another Huffman code from.
OutputBufferTooSmall
The output buffer is too small to write to.
InternalInconsistency
There is an internal inconsistency within the Huffman tree.
TooManyContexts
The tree has too many contexts.
Trait Implementations§
source§impl Debug for HuffmanError
impl Debug for HuffmanError
source§impl Display for HuffmanError
impl Display for HuffmanError
source§impl Error for HuffmanError
impl Error for HuffmanError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BitReaderError> for HuffmanError
impl From<BitReaderError> for HuffmanError
source§fn from(err: BitReaderError) -> Self
fn from(err: BitReaderError) -> Self
Converts to this type from the input type.
source§impl From<HuffmanError> for Error
impl From<HuffmanError> for Error
source§fn from(_e: HuffmanError) -> Self
fn from(_e: HuffmanError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for HuffmanError
impl Send for HuffmanError
impl Sync for HuffmanError
impl Unpin for HuffmanError
impl UnwindSafe for HuffmanError
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