#[non_exhaustive]pub enum HllError {
PrecisionMismatch {
left: u32,
right: u32,
},
InvalidPrecision(u32),
BadMagic,
UnsupportedVersion(u8),
UnsupportedEncoding(u8),
Truncated {
expected: usize,
actual: usize,
},
}Expand description
Every failure subms-hyperloglog can return.
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.
PrecisionMismatch
Two sketches at different precisions cannot be reconciled: the register index is cut from a different slice of the hash.
InvalidPrecision(u32)
Precision outside the calibrated [4, 18] range.
BadMagic
Buffer does not start with the SHLL magic.
UnsupportedVersion(u8)
Format version this build does not understand.
UnsupportedEncoding(u8)
Encoding byte this build does not understand, or one the target type
refuses (a sparse buffer handed to HyperLogLog::from_bytes).
Truncated
Buffer ended before the declared payload did.
Trait Implementations§
impl Copy for HllError
impl Eq for HllError
Source§impl Error for HllError
impl Error for HllError
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()
impl StructuralPartialEq for HllError
Auto Trait Implementations§
impl Freeze for HllError
impl RefUnwindSafe for HllError
impl Send for HllError
impl Sync for HllError
impl Unpin for HllError
impl UnsafeUnpin for HllError
impl UnwindSafe for HllError
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