pub struct SipHasher { /* private fields */ }
Expand description
A fast, non-cryptographic hash outputting 128-bit digests.
This implementation is used as the default Hasher
implementation, using
the standard library Hash
trait, which may produce non-portable hashes
as described in the documentation of the Hash
trait itself, and this
crate’s Hasher
.
Users may choose to initialise the SipHasher
with seed keys if untrusted
key/value user input is used in a tree in order to prevent chosen-hash
collision attacks.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SipHasher
impl RefUnwindSafe for SipHasher
impl Send for SipHasher
impl Sync for SipHasher
impl Unpin for SipHasher
impl UnwindSafe for SipHasher
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