pub struct Hash32Neutral;
Expand description
MurmurHash2
32-bit neutral hash functions for the (slower) endian-neutral implementation
§Example
use fasthash::{murmur2::Hash32Neutral, FastHash};
assert_eq!(Hash32Neutral::hash(b"hello"), 3848350155);
assert_eq!(Hash32Neutral::hash_with_seed(b"hello", 123), 2385981934);
assert_eq!(Hash32Neutral::hash(b"helloworld"), 2155944146);
Trait Implementations§
Source§impl BuildHasher for Hash32Neutral
impl BuildHasher for Hash32Neutral
Source§impl Clone for Hash32Neutral
impl Clone for Hash32Neutral
Source§fn clone(&self) -> Hash32Neutral
fn clone(&self) -> Hash32Neutral
Returns a duplicate 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 Default for Hash32Neutral
impl Default for Hash32Neutral
Source§fn default() -> Hash32Neutral
fn default() -> Hash32Neutral
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Hash32Neutral
impl RefUnwindSafe for Hash32Neutral
impl Send for Hash32Neutral
impl Sync for Hash32Neutral
impl Unpin for Hash32Neutral
impl UnwindSafe for Hash32Neutral
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