pub struct Hasher(/* private fields */);Expand description
Streaming xxh3: feed pieces with Hasher::update; the digests equal
the one-shot functions over the concatenation.
Implementations§
Source§impl Hasher
impl Hasher
Sourcepub fn with_seed(seed: u64) -> Self
pub fn with_seed(seed: u64) -> Self
A seeded hasher (matches xxh3_64_seeded).
Sourcepub fn field(&mut self, bytes: &[u8])
pub fn field(&mut self, bytes: &[u8])
Feed one length-delimited field (its length, then its bytes), so
adjacent fields can never run into each other ("ab","c" ≠ "a","bc").
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hasher
impl RefUnwindSafe for Hasher
impl Send for Hasher
impl Sync for Hasher
impl Unpin for Hasher
impl UnsafeUnpin for Hasher
impl UnwindSafe for Hasher
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