Struct core::hash::sip::SipHasher13
source · pub struct SipHasher13 {
hasher: Hasher<Sip13Rounds>,
}
👎Deprecated since 1.13.0: use
std::collections::hash_map::DefaultHasher
instead🔬This is a nightly-only experimental API. (
hashmap_internals
)Expand description
An implementation of SipHash 1-3.
This is currently the default hashing function used by standard library
(e.g., collections::HashMap
uses it by default).
Fields§
§hasher: Hasher<Sip13Rounds>
👎Deprecated since 1.13.0: use
std::collections::hash_map::DefaultHasher
instead🔬This is a nightly-only experimental API. (
hashmap_internals
)Implementations§
source§impl SipHasher13
impl SipHasher13
const: unstable · sourcepub fn new() -> SipHasher13
👎Deprecated since 1.13.0: use std::collections::hash_map::DefaultHasher
instead🔬This is a nightly-only experimental API. (hashmap_internals
)
pub fn new() -> SipHasher13
std::collections::hash_map::DefaultHasher
insteadhashmap_internals
)Creates a new SipHasher13
with the two initial keys set to 0.
const: unstable · sourcepub fn new_with_keys(key0: u64, key1: u64) -> SipHasher13
👎Deprecated since 1.13.0: use std::collections::hash_map::DefaultHasher
instead🔬This is a nightly-only experimental API. (hashmap_internals
)
pub fn new_with_keys(key0: u64, key1: u64) -> SipHasher13
std::collections::hash_map::DefaultHasher
insteadhashmap_internals
)Creates a SipHasher13
that is keyed off the provided keys.