pub enum PpmError {
IoError(Error),
CorruptData,
InvalidState,
ModelError(&'static str),
}Expand description
The set of errors that can occur during PPM encoding or decoding.
Variants§
IoError(Error)
Errors from any underlying I/O operations (file, stream, etc.).
CorruptData
The input data was unexpectedly corrupt (e.g., decoder sees an impossible symbol).
InvalidState
The decoder was put into an invalid state (should not happen in normal use).
ModelError(&'static str)
Errors in the PPM model itself (e.g., invalid parameters).
Trait Implementations§
Source§impl Error for PpmError
impl Error for PpmError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl !RefUnwindSafe for PpmError
impl !UnwindSafe for PpmError
impl Freeze for PpmError
impl Send for PpmError
impl Sync for PpmError
impl Unpin for PpmError
impl UnsafeUnpin for PpmError
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