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
sourceimpl Error for LzwError
impl Error for LzwError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl Copy for LzwError
Auto Trait Implementations
impl RefUnwindSafe for LzwError
impl Send for LzwError
impl Sync for LzwError
impl Unpin for LzwError
impl UnwindSafe for LzwError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more