Struct std::hash::sip::SipState[src]

pub struct SipState {
    // some fields omitted
}

SipState computes a SipHash 2-4 hash over a stream of bytes.

Methods

impl SipState

fn new() -> SipState

Create a SipState that is keyed off the provided keys.

fn new_with_keys(key0: u64, key1: u64) -> SipState

Create a SipState that is keyed off the provided keys.

fn reset(&mut self)

Reset the state back to it's initial state.

fn result(&self) -> u64

Return the computed hash.

Trait Implementations

impl Writer for SipState

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

impl Clone for SipState

fn clone(&self) -> SipState

fn clone_from(&mut self, &SipState)

impl Default for SipState

fn default() -> SipState