Enum vpk0::errors::EncodeTreeParseErr
source · [−]#[non_exhaustive]
pub enum EncodeTreeParseErr {
LexNum(ParseIntError, usize),
LexUnexp(char, usize),
ParseUnexp(&'static str, usize),
ParseUnexpEnd,
}
Expand description
Possible errors from parsing a user provided Huffman Tree
These errors can occur when a user passes a bad Huffman Tree to
the with_offsets
, with_lengths
, optional_offsets
, or optional_lengths
methods of a Encoder
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LexNum(ParseIntError, usize)
LexUnexp(char, usize)
ParseUnexp(&'static str, usize)
ParseUnexpEnd
Trait Implementations
Performs the conversion.