Enum rbitset::BitSetError
source · [−]#[non_exhaustive]
pub enum BitSetError {
BiggerThanCapacity,
}Expand description
Possible errors on the BitSet operations.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BiggerThanCapacity
Happens when trying to insert or remove a value bigger than the capacity of the bitset.
Trait Implementations
sourceimpl Clone for BitSetError
impl Clone for BitSetError
sourcefn clone(&self) -> BitSetError
fn clone(&self) -> BitSetError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BitSetError
impl Debug for BitSetError
sourceimpl Display for BitSetError
impl Display for BitSetError
sourceimpl Hash for BitSetError
impl Hash for BitSetError
sourceimpl Ord for BitSetError
impl Ord for BitSetError
sourceimpl PartialEq<BitSetError> for BitSetError
impl PartialEq<BitSetError> for BitSetError
sourceimpl PartialOrd<BitSetError> for BitSetError
impl PartialOrd<BitSetError> for BitSetError
sourcefn partial_cmp(&self, other: &BitSetError) -> Option<Ordering>
fn partial_cmp(&self, other: &BitSetError) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for BitSetError
impl Eq for BitSetError
impl StructuralEq for BitSetError
impl StructuralPartialEq for BitSetError
Auto Trait Implementations
impl RefUnwindSafe for BitSetError
impl Send for BitSetError
impl Sync for BitSetError
impl Unpin for BitSetError
impl UnwindSafe for BitSetError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more