Struct twox_hash::XxHash32 [−][src]
Calculates the 32-bit hash. Care should be taken when using this hash.
Although this struct implements Hasher
, it only calculates a
32-bit number, leaving the upper bits as 0. This means it is
unlikely to be correct to use this in places like a HashMap
.
Implementations
impl XxHash32
[src][−]
pub fn with_seed(seed: u32) -> XxHash32
[src][−]
Constructs the hash with an initial seed
pub fn seed(&self) -> u32
[src]
pub fn total_len(&self) -> u32
[src]
Trait Implementations
impl Clone for XxHash32
[src][+]
impl Copy for XxHash32
[src]
impl Debug for XxHash32
[src][+]
impl Default for XxHash32
[src][+]
impl Hasher for XxHash32
[src][+]
impl PartialEq<XxHash32> for XxHash32
[src][+]
impl StructuralPartialEq for XxHash32
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,