Struct SipHasher13

pub struct SipHasher13 { pub(in ::hash::sip) hasher: Hasher<Sip13Rounds> }

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://github.com/veorq/SipHash

Fields

hasher: Hasher<Sip13Rounds>

Implementations

impl SipHasher13

const fn new() -> SipHasher13

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

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

Creates a SipHasher13 that is keyed off the provided keys.

Trait Implementations

impl Clone for SipHasher13

fn clone(&self) -> SipHasher13

impl Debug for SipHasher13

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

impl Default for SipHasher13

fn default() -> SipHasher13

impl Hasher for SipHasher13

fn write(&mut self, msg: &[u8])
fn write_str(&mut self, s: &str)
fn finish(&self) -> u64