pub enum BitWriterError {
OutOfBounds {
asked: usize,
available: usize,
},
TooLongForType {
max: u8,
asked: u8,
},
NonAlignedBit {
cursor: usize,
},
}Expand description
Errors raised during bitwise writes into a buffer.
Variants§
OutOfBounds
Attempted to write beyond the provided capacity.
TooLongForType
Field is too large for the provided type.
NonAlignedBit
Cursor is not aligned on a byte boundary when the operation requires it.
Trait Implementations§
Source§impl Debug for BitWriterError
impl Debug for BitWriterError
Auto Trait Implementations§
impl Freeze for BitWriterError
impl RefUnwindSafe for BitWriterError
impl Send for BitWriterError
impl Sync for BitWriterError
impl Unpin for BitWriterError
impl UnsafeUnpin for BitWriterError
impl UnwindSafe for BitWriterError
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