pub enum CardinalityError {
InvalidPrecision,
}Expand description
Errors that prevent constructing or updating a HyperLogLog estimator.
Returned (never panicked) so callers stay clear of the crate’s unwrap/panic
lint gate and can surface a clean diagnostic.
Variants§
InvalidPrecision
The requested precision was outside the supported [4, 18] range, so the
register count 2^p and the α_m correction would be ill-defined.
Trait Implementations§
Source§impl Clone for CardinalityError
impl Clone for CardinalityError
Source§fn clone(&self) -> CardinalityError
fn clone(&self) -> CardinalityError
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 moreSource§impl Debug for CardinalityError
impl Debug for CardinalityError
Source§impl Display for CardinalityError
impl Display for CardinalityError
impl Eq for CardinalityError
Source§impl Error for CardinalityError
impl Error for CardinalityError
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 CardinalityError
impl PartialEq for CardinalityError
Source§fn eq(&self, other: &CardinalityError) -> bool
fn eq(&self, other: &CardinalityError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CardinalityError
Auto Trait Implementations§
impl Freeze for CardinalityError
impl RefUnwindSafe for CardinalityError
impl Send for CardinalityError
impl Sync for CardinalityError
impl Unpin for CardinalityError
impl UnsafeUnpin for CardinalityError
impl UnwindSafe for CardinalityError
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