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).

See: https://131002.net/siphash

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

const: unstable · source

pub fn new() -> SipHasher13

👎Deprecated since 1.13.0: use std::collections::hash_map::DefaultHasher instead
🔬This is a nightly-only experimental API. (hashmap_internals)

Creates a new SipHasher13 with the two initial keys set to 0.

const: unstable · source

pub 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)

Creates a SipHasher13 that is keyed off the provided keys.