pub struct Hash32;
Expand description
xxHash 32-bit hash functions
§Example
use fasthash::{xx::Hash32, FastHash};
assert_eq!(Hash32::hash(b"hello"), 4211111929);
assert_eq!(Hash32::hash_with_seed(b"hello", 123), 2147069998);
assert_eq!(Hash32::hash(b"helloworld"), 593682946);
Trait Implementations§
Source§impl BuildHasher for Hash32
impl BuildHasher for Hash32
Auto Trait Implementations§
impl Freeze for Hash32
impl RefUnwindSafe for Hash32
impl Send for Hash32
impl Sync for Hash32
impl Unpin for Hash32
impl UnwindSafe for Hash32
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