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

FibonacciElementOverflow

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
ConstructionOverflow

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 Debug for DecodeError[src]

impl Display for DecodeError[src]

impl Fail for DecodeError[src]

impl PartialEq<DecodeError> for DecodeError[src]

impl StructuralPartialEq for DecodeError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.