pub enum EntropyError {
InvalidPmf,
InvalidParams,
InvalidState,
InvalidStream,
RawRansError(RawRansError),
}Expand description
Errors that can occur during entropy encode/decode operations.
Variants§
InvalidPmf
Invalid PMF data (lengths, offsets, or table).
InvalidParams
Invalid parameter value (symbolBits, bypassBits, etc.).
InvalidState
Encoder/decoder is not initialized.
InvalidStream
Stream data is truncated or corrupted.
RawRansError(RawRansError)
Raw rANS primitive error.
Trait Implementations§
Source§impl Clone for EntropyError
impl Clone for EntropyError
Source§fn clone(&self) -> EntropyError
fn clone(&self) -> EntropyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntropyError
impl Debug for EntropyError
Source§impl Display for EntropyError
impl Display for EntropyError
impl Eq for EntropyError
Source§impl PartialEq for EntropyError
impl PartialEq for EntropyError
impl StructuralPartialEq for EntropyError
Auto Trait Implementations§
impl Freeze for EntropyError
impl RefUnwindSafe for EntropyError
impl Send for EntropyError
impl Sync for EntropyError
impl Unpin for EntropyError
impl UnsafeUnpin for EntropyError
impl UnwindSafe for EntropyError
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