Struct SipHasher13

Source
#[doc(hidden)] pub struct SipHasher13 {
    hasher: Hasher<Sip13Rounds>,
}
๐Ÿ‘ŽDeprecated since 1.13.0: use std::hash::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::hash::DefaultHasher instead
๐Ÿ”ฌThis is a nightly-only experimental API. (hashmap_internals)

Implementationsยง

Sourceยง

impl SipHasher13

Source

pub fn new() -> SipHasher13

๐Ÿ‘ŽDeprecated since 1.13.0: use std::hash::DefaultHasher instead
๐Ÿ”ฌThis is a nightly-only experimental API. (hashmap_internals)

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

Source

pub fn new_with_keys(key0: u64, key1: u64) -> SipHasher13

๐Ÿ‘ŽDeprecated since 1.13.0: use std::hash::DefaultHasher instead
๐Ÿ”ฌThis is a nightly-only experimental API. (hashmap_internals)

Creates a SipHasher13 that is keyed off the provided keys.

Trait Implementationsยง

Sourceยง

impl Clone for SipHasher13

Sourceยง

fn clone(&self) -> SipHasher13

Returns a copy of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for SipHasher13

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Sourceยง

impl Default for SipHasher13

Sourceยง

fn default() -> SipHasher13

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl Hasher for SipHasher13

Sourceยง

fn write(&mut self, msg: &[u8])

Writes some data into this Hasher. Read more
Sourceยง

fn write_str(&mut self, s: &str)

๐Ÿ”ฌThis is a nightly-only experimental API. (hasher_prefixfree_extras)
Writes a single str into this hasher. Read more
Sourceยง

fn finish(&self) -> u64

Returns the hash value for the values written so far. Read more
1.3.0 ยท Sourceยง

fn write_u8(&mut self, i: u8)

Writes a single u8 into this hasher.
1.3.0 ยท Sourceยง

fn write_u16(&mut self, i: u16)

Writes a single u16 into this hasher.
1.3.0 ยท Sourceยง

fn write_u32(&mut self, i: u32)

Writes a single u32 into this hasher.
1.3.0 ยท Sourceยง

fn write_u64(&mut self, i: u64)

Writes a single u64 into this hasher.
1.26.0 ยท Sourceยง

fn write_u128(&mut self, i: u128)

Writes a single u128 into this hasher.
1.3.0 ยท Sourceยง

fn write_usize(&mut self, i: usize)

Writes a single usize into this hasher.
1.3.0 ยท Sourceยง

fn write_i8(&mut self, i: i8)

Writes a single i8 into this hasher.
1.3.0 ยท Sourceยง

fn write_i16(&mut self, i: i16)

Writes a single i16 into this hasher.
1.3.0 ยท Sourceยง

fn write_i32(&mut self, i: i32)

Writes a single i32 into this hasher.
1.3.0 ยท Sourceยง

fn write_i64(&mut self, i: i64)

Writes a single i64 into this hasher.
1.26.0 ยท Sourceยง

fn write_i128(&mut self, i: i128)

Writes a single i128 into this hasher.
1.3.0 ยท Sourceยง

fn write_isize(&mut self, i: isize)

Writes a single isize into this hasher.
Sourceยง

fn write_length_prefix(&mut self, len: usize)

๐Ÿ”ฌThis is a nightly-only experimental API. (hasher_prefixfree_extras)
Writes a length prefix into this hasher, as part of being prefix-free. Read more