Enum fibonacci_codec::DecodeError [−][src]
pub enum DecodeError { FibonacciElementOverflow { bit_pos: usize, }, ConstructionOverflow { bit_pos: usize, }, }
Returned if decoding a number fails. Usually indicates an overflow of the number being decoded.
Variants
Indicates that the decoded number depends on a fibonacci sequence element that doesn’t fit the return type.
Show fields
Fields of FibonacciElementOverflow
bit_pos: usize
Indicates that the decoded number does not fit into the given result type. This more than anything indicates that a bit flip has occurred, and the next number can’t be trusted either.
Show fields
Fields of ConstructionOverflow
bit_pos: usize
Trait Implementations
impl Fail for DecodeError
[src]
impl Fail for DecodeError
[src]impl PartialEq<DecodeError> for DecodeError
[src]
impl PartialEq<DecodeError> for DecodeError
[src]fn eq(&self, other: &DecodeError) -> bool
[src]
fn ne(&self, other: &DecodeError) -> bool
[src]
impl StructuralPartialEq for DecodeError
[src]
impl StructuralPartialEq for DecodeError
[src]Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
impl UnwindSafe for DecodeError