pub struct Fnv1a64(/* private fields */);Expand description
Streaming 64-bit FNV-1a.
Implementations§
Source§impl Fnv1a64
impl Fnv1a64
pub const fn new() -> Self
Sourcepub fn write(&mut self, bytes: &[u8]) -> &mut Self
pub fn write(&mut self, bytes: &[u8]) -> &mut Self
Feed bytes one at a time (xor, then multiply by the prime).
Sourcepub fn mix_word(&mut self, word: u64) -> &mut Self
pub fn mix_word(&mut self, word: u64) -> &mut Self
One word-wise step: xor the whole word, then multiply by the prime.
Not equivalent to Fnv1a64::write of the word’s bytes.
pub const fn finish(&self) -> u64
Trait Implementations§
impl Copy for Fnv1a64
Auto Trait Implementations§
impl Freeze for Fnv1a64
impl RefUnwindSafe for Fnv1a64
impl Send for Fnv1a64
impl Sync for Fnv1a64
impl Unpin for Fnv1a64
impl UnwindSafe for Fnv1a64
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