pub enum UmashComponent {
Hash = 0,
Secondary = 1,
}
Expand description
A given Params
struct defines a pair of 64-bit hash functions.
The UmashComponent::Hash
is the primary hash value; we find a
128-bit fingerprint by combining that primary value with the
UmashComponent::Secondary
hash (in practice, it’s more
efficient to compute both hash values concurrently, when one knows
they want a fingerprint).
Variants§
Hash = 0
Compute the primary 64 bit hash (the first u64
in a
Fingerprint
)
Secondary = 1
Compute the secondary 64-bit value (the second u64
in a
Fingerprint
). This secondary value is slightly less well
distributed and collision resistant than the primary, but
combines efficiently with the primary to compute a reasonably
strong 128-bit Fingerprint
.
Trait Implementations§
Source§impl Clone for UmashComponent
impl Clone for UmashComponent
Source§fn clone(&self) -> UmashComponent
fn clone(&self) -> UmashComponent
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 UmashComponent
impl Debug for UmashComponent
Source§impl Hash for UmashComponent
impl Hash for UmashComponent
Source§impl PartialEq for UmashComponent
impl PartialEq for UmashComponent
impl Copy for UmashComponent
impl Eq for UmashComponent
impl StructuralPartialEq for UmashComponent
Auto Trait Implementations§
impl Freeze for UmashComponent
impl RefUnwindSafe for UmashComponent
impl Send for UmashComponent
impl Sync for UmashComponent
impl Unpin for UmashComponent
impl UnwindSafe for UmashComponent
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