Enum bitreader::BitReaderError [−][src]
pub enum BitReaderError {
NotEnoughData {
position: u64,
length: u64,
requested: u64,
},
TooManyBitsForType {
position: u64,
requested: u8,
allowed: u8,
},
}
Expand description
Error enumeration of BitReader errors.
Variants
NotEnoughData
Fields
position: u64
Current posititon in bits relative to the beginning of the reader.
length: u64
Total readable length in bits of the underlaying slice.
requested: u64
Bits requested to be read.
Requested more bits than there are left in the byte slice at the current position.
TooManyBitsForType
Requested more bits than the returned variable can hold, for example more than 8 bits when reading into a u8.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BitReaderError
impl Send for BitReaderError
impl Sync for BitReaderError
impl Unpin for BitReaderError
impl UnwindSafe for BitReaderError
Blanket Implementations
Mutably borrows from an owned value. Read more