pub enum BitError {
CountNotEqualToOne,
Found,
NotFound,
Range,
}
Expand description
BitError
enumerates possible error conditions when bitops are used “incorrectly.”
Variants§
CountNotEqualToOne
BitError::CountNotEqualToOne
indicates a word representing a bit contains either 2 or more bits or 0 bits.
Found
BitError::Found
indicates a bit that is supposed to be absent is present.
NotFound
BitError::NotFound
indicates a bit that is supposed to be present is absent.
Range
BitError::Range
indicates an index exceeding the word size was used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BitError
impl RefUnwindSafe for BitError
impl Send for BitError
impl Sync for BitError
impl Unpin for BitError
impl UnwindSafe for BitError
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