Trait hyperloglog_rs::prelude::WordType
source · pub trait WordType<const BITS: usize> {
type Words: Copy + Debug + IndexMut<usize, Output = u32> + Index<usize, Output = u32> + Send + Sync + Eq + PartialEq + ArrayIter<u32> + ArrayDefault<u32>;
}Required Associated Types§
sourcetype Words: Copy + Debug + IndexMut<usize, Output = u32> + Index<usize, Output = u32> + Send + Sync + Eq + PartialEq + ArrayIter<u32> + ArrayDefault<u32>
type Words: Copy + Debug + IndexMut<usize, Output = u32> + Index<usize, Output = u32> + Send + Sync + Eq + PartialEq + ArrayIter<u32> + ArrayDefault<u32>
The type to use for the associated vector of words. The type of Words is always an array of u32, as this is the smallest type that can be used to store the number of registers.
The length of the array is: ceil(PRECISION::NUMBER_OF_REGISTERS, 32 / BITS)
We cannot use the above expression directly, as it would force the library user to propagate some very ugly constraints around.