pub struct Hasher { /* private fields */ }Expand description
The hasher Fingerprint writes into: FNV-1a, 64-bit.
Deliberately not std::hash::Hasher. That trait’s implementations are
free to change their output between Rust releases, which would turn a
toolchain upgrade on one side of a connection into a stream of spurious
mismatches. This one is pinned to the constants above and will not move.
It is not a cryptographic hash and is not meant to survive an adversary — it exists to catch accidental divergence.
Implementations§
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