pub enum RawRansError {
InvalidScaleBits {
provided: u32,
max_safe: u32,
},
InvalidParameters,
}Expand description
Errors that can occur during raw rANS operations.
Variants§
InvalidScaleBits
scale_bits is out of the valid range for the variant.
For RansByte: valid range is [2, 30].
For Rans64: the defined safe range is [2, 31]. scale_bits == 32 causes
undefined-shift behavior in the C++ oracle and is rejected by this implementation.
Fields
InvalidParameters
Frequency or start values are out of range.
Trait Implementations§
Source§impl Clone for RawRansError
impl Clone for RawRansError
Source§fn clone(&self) -> RawRansError
fn clone(&self) -> RawRansError
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 moreimpl Copy for RawRansError
Source§impl Debug for RawRansError
impl Debug for RawRansError
Source§impl Display for RawRansError
impl Display for RawRansError
impl Eq for RawRansError
Source§impl PartialEq for RawRansError
impl PartialEq for RawRansError
impl StructuralPartialEq for RawRansError
Auto Trait Implementations§
impl Freeze for RawRansError
impl RefUnwindSafe for RawRansError
impl Send for RawRansError
impl Sync for RawRansError
impl Unpin for RawRansError
impl UnsafeUnpin for RawRansError
impl UnwindSafe for RawRansError
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