Enum bitreader::BitReaderError [] [src]

pub enum BitReaderError {
    NotEnoughData {
        position: u64,
        length: u64,
        requested: u64,
    },
    TooManyBitsForType {
        position: u64,
        requested: u8,
        allowed: u8,
    },
}

Error enumeration of BitReader errors.

Variants

Requested more bits than there are left in the byte slice at the current position.

Fields of NotEnoughData

Requested more bits than the returned variable can hold, for example more than 8 bits when reading into a u8.

Fields of TooManyBitsForType

Trait Implementations

impl Debug for BitReaderError
[src]

Formats the value using the given formatter.

impl PartialEq for BitReaderError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Copy for BitReaderError
[src]

impl Clone for BitReaderError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Error for BitReaderError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for BitReaderError
[src]

Formats the value using the given formatter.