pub enum LzwError {
InvalidCode,
}
Expand description
The error kind after unsuccessful coding of an LZW stream.
Variants§
InvalidCode
The input contained an invalid code.
For decompression this refers to a code larger than those currently known through the prior
decoding stages. For compression this refers to a byte that has no code representation due
to being larger than permitted by the size
parameter given to the Encoder.
Trait Implementations§
source§impl Error for LzwError
impl Error for LzwError
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()
impl Copy for LzwError
Auto Trait Implementations§
impl Freeze for LzwError
impl RefUnwindSafe for LzwError
impl Send for LzwError
impl Sync for LzwError
impl Unpin for LzwError
impl UnwindSafe for LzwError
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