pub struct FNV1a_64 { /* private fields */ }Expand description
The FNV algorithm in version 1a with 64bit size.
Implementations§
Trait Implementations§
Source§impl HashFunction for FNV1a_64
impl HashFunction for FNV1a_64
type Output = [u8; 8]
Source§fn update(&mut self, data: impl AsRef<[u8]>)
fn update(&mut self, data: impl AsRef<[u8]>)
Updates the internal state of the
HashFunction with given data.Source§fn write_result(&self, output: &mut Self::Output)
fn write_result(&self, output: &mut Self::Output)
Writes the final result to the output passed as ref parameter.
Source§fn result(&self) -> Self::Output
fn result(&self) -> Self::Output
A wrapper around
HashFunction::write_result that returns the hash
instead of writing it to output parameter.Source§impl Hasher for FNV1a_64
impl Hasher for FNV1a_64
1.26.0 · Source§fn write_u128(&mut self, i: u128)
fn write_u128(&mut self, i: u128)
Writes a single
u128 into this hasher.1.3.0 · Source§fn write_usize(&mut self, i: usize)
fn write_usize(&mut self, i: usize)
Writes a single
usize into this hasher.1.26.0 · Source§fn write_i128(&mut self, i: i128)
fn write_i128(&mut self, i: i128)
Writes a single
i128 into this hasher.1.3.0 · Source§fn write_isize(&mut self, i: isize)
fn write_isize(&mut self, i: isize)
Writes a single
isize into this hasher.Source§fn write_length_prefix(&mut self, len: usize)
fn write_length_prefix(&mut self, len: usize)
🔬This is a nightly-only experimental API. (
hasher_prefixfree_extras)Writes a length prefix into this hasher, as part of being prefix-free. Read more
impl Eq for FNV1a_64
impl StructuralPartialEq for FNV1a_64
Auto Trait Implementations§
impl Freeze for FNV1a_64
impl RefUnwindSafe for FNV1a_64
impl Send for FNV1a_64
impl Sync for FNV1a_64
impl Unpin for FNV1a_64
impl UnsafeUnpin for FNV1a_64
impl UnwindSafe for FNV1a_64
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