Struct hyperloglog_rs::prelude::Precision17
source · pub struct Precision17;Trait Implementations§
source§impl Clone for Precision17
impl Clone for Precision17
source§fn clone(&self) -> Precision17
fn clone(&self) -> Precision17
Returns a copy 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 Precision17
impl Debug for Precision17
source§impl Default for Precision17
impl Default for Precision17
source§fn default() -> Precision17
fn default() -> Precision17
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Precision17
impl<'de> Deserialize<'de> for Precision17
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for Precision17
impl Hash for Precision17
source§impl PartialEq<Precision17> for Precision17
impl PartialEq<Precision17> for Precision17
source§fn eq(&self, other: &Precision17) -> bool
fn eq(&self, other: &Precision17) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Precision for Precision17
impl Precision for Precision17
§type NumberOfZeros = u32
type NumberOfZeros = u32
The data type to use for the number of zeros registers counter.
This should be the smallest possinle data type that allows us to count
all the registers without overflowing. We can tollerate a one-off error
when counting the number of zeros, as it will be corrected when computing
the cardinality as it is known before hand whether this can happen at all.
source§const EXPONENT: usize = 17usize
const EXPONENT: usize = 17usize
The exponent of the number of registers, meaning the number of registers
that will be used is 2^EXPONENT.
source§const MAXIMAL: usize = 4_294_967_295usize
const MAXIMAL: usize = 4_294_967_295usize
The maximal number that can be represented with the selected NumberOfZeros.
§type SmallCorrrections = [f32; 131072]
type SmallCorrrections = [f32; 131072]
Type for small corrections:
source§const SMALL_CORRECTIONS: [f32; 131072] = _
const SMALL_CORRECTIONS: [f32; 131072] = _
The precomputed small corrections used in the HyperLogLog algorithm for better performance.
source§const NUMBER_OF_REGISTERS: usize = _
const NUMBER_OF_REGISTERS: usize = _
The number of registers that will be used.
source§impl Serialize for Precision17
impl Serialize for Precision17
source§impl WordType<1> for Precision17
impl WordType<1> for Precision17
source§impl WordType<2> for Precision17
impl WordType<2> for Precision17
source§impl WordType<3> for Precision17
impl WordType<3> for Precision17
source§impl WordType<4> for Precision17
impl WordType<4> for Precision17
source§impl WordType<5> for Precision17
impl WordType<5> for Precision17
source§impl WordType<6> for Precision17
impl WordType<6> for Precision17
impl Copy for Precision17
impl Eq for Precision17
impl StructuralEq for Precision17
impl StructuralPartialEq for Precision17
Auto Trait Implementations§
impl RefUnwindSafe for Precision17
impl Send for Precision17
impl Sync for Precision17
impl Unpin for Precision17
impl UnwindSafe for Precision17
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