[][src]Enum wasabi_leb128::ParseLeb128Error

pub enum ParseLeb128Error {
    OverflowTooManyBytes,
    OverflowExtraBits,
    UnexpectedEndOfData(Error),
    Other(Error),
}

Errors while parsing an LEB128 value from an io::Read reader.

Variants

OverflowTooManyBytes

The input LEB128 value is larger than can be represented in the target type, because the input had too many bytes (i.e., more bytes than max_bytes::<T>()).

OverflowExtraBits

The input LEB128 value is larger than can be represented in the target type, because the last byte of the LEB128 sequence contains invalid extra bits.

UnexpectedEndOfData(Error)

The input ended before a full LEB128 value could be parsed. The unnamed argument is the underlying io::Error.

Other(Error)

Any other io::Error during reading that is not specific to parsing LEB128 values.

Trait Implementations

impl Debug for ParseLeb128Error[src]

impl Display for ParseLeb128Error[src]

impl Error for ParseLeb128Error[src]

impl From<Error> for ParseLeb128Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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.