pub enum BitReaderError {
OutOfBounds {
asked: usize,
available: usize,
},
TooLongForType {
max: u8,
asked: u8,
},
NonAlignedBit {
cursor: usize,
},
}Expand description
Errors raised during bitwise buffer reads.
Variants§
OutOfBounds
Attempted to read past the end of the buffer.
TooLongForType
Requested more bits than the target type can hold.
NonAlignedBit
Cursor is not aligned on a byte boundary when required.
Trait Implementations§
Source§impl Debug for BitReaderError
impl Debug for BitReaderError
Auto Trait Implementations§
impl Freeze for BitReaderError
impl RefUnwindSafe for BitReaderError
impl Send for BitReaderError
impl Sync for BitReaderError
impl Unpin for BitReaderError
impl UnsafeUnpin for BitReaderError
impl UnwindSafe for BitReaderError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more