pub struct Fnv1aHasher { /* private fields */ }Expand description
An FNV-1a hash state for fast string hashing.
Implementations§
Source§impl Fnv1aHasher
impl Fnv1aHasher
Sourcepub fn write_byte(&mut self, byte: u8)
pub fn write_byte(&mut self, byte: u8)
Feed a byte into the hash.
Sourcepub fn hash_str_32(s: &str) -> u32
pub fn hash_str_32(s: &str) -> u32
Hash a string, returning a u32 by xor-folding.
Trait Implementations§
Source§impl Clone for Fnv1aHasher
impl Clone for Fnv1aHasher
Source§fn clone(&self) -> Fnv1aHasher
fn clone(&self) -> Fnv1aHasher
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 Debug for Fnv1aHasher
impl Debug for Fnv1aHasher
Auto Trait Implementations§
impl Freeze for Fnv1aHasher
impl RefUnwindSafe for Fnv1aHasher
impl Send for Fnv1aHasher
impl Sync for Fnv1aHasher
impl Unpin for Fnv1aHasher
impl UnsafeUnpin for Fnv1aHasher
impl UnwindSafe for Fnv1aHasher
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