pub enum HyperLogLogError {
RegisterSizeTooLarge {
register_size: usize,
num_elements: usize,
hash_bits: u32,
},
UnalignedBackend {
est_size_in_bits: usize,
word_bits: usize,
min_alignment: String,
min_log2_num_regs: usize,
},
}Expand description
Error returned by HyperLogLogBuilder::build when the configuration is
invalid.
Variants§
RegisterSizeTooLarge
The register size derived from num_elements exceeds the maximum
supported by the hash type.
UnalignedBackend
The estimator size in bits is not divisible by the bit width of the
backend word type W, so registers cannot be packed exactly into whole
words.
Trait Implementations§
Source§impl Clone for HyperLogLogError
impl Clone for HyperLogLogError
Source§fn clone(&self) -> HyperLogLogError
fn clone(&self) -> HyperLogLogError
Returns a duplicate of the value. Read more
1.0.0 · 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 HyperLogLogError
impl Debug for HyperLogLogError
Source§impl Display for HyperLogLogError
impl Display for HyperLogLogError
Source§impl Error for HyperLogLogError
impl Error for HyperLogLogError
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()
Auto Trait Implementations§
impl Freeze for HyperLogLogError
impl RefUnwindSafe for HyperLogLogError
impl Send for HyperLogLogError
impl Sync for HyperLogLogError
impl Unpin for HyperLogLogError
impl UnsafeUnpin for HyperLogLogError
impl UnwindSafe for HyperLogLogError
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