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