pub enum CuckooError {
NotEnoughSpace,
GeometryMismatch {
lhs: usize,
rhs: usize,
},
}Expand description
Every way an operation on a CuckooFilter can refuse.
Variants§
NotEnoughSpace
The eviction chain hit MAX_KICKS and the victim slot was already
occupied, so there is nowhere left to put a fingerprint. Size the
filter larger, or reach for the dynamic feature.
GeometryMismatch
CuckooFilter::union was handed a filter with a different bucket
count. Bucket i of one filter has no relationship to bucket i of
the other unless the geometries match.
Trait Implementations§
Source§impl Clone for CuckooError
impl Clone for CuckooError
Source§fn clone(&self) -> CuckooError
fn clone(&self) -> CuckooError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CuckooError
Source§impl Debug for CuckooError
impl Debug for CuckooError
Source§impl Display for CuckooError
impl Display for CuckooError
impl Eq for CuckooError
Source§impl Error for CuckooError
impl Error for CuckooError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CuckooError
impl PartialEq for CuckooError
impl StructuralPartialEq for CuckooError
Auto Trait Implementations§
impl Freeze for CuckooError
impl RefUnwindSafe for CuckooError
impl Send for CuckooError
impl Sync for CuckooError
impl Unpin for CuckooError
impl UnsafeUnpin for CuckooError
impl UnwindSafe for CuckooError
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