Struct seahash::State
[−]
[src]
pub struct State { /* fields omitted */ }
A SeaHash state.
Methods
impl State
[src]
fn new(a: u64, b: u64, c: u64, d: u64) -> State
Create a new state vector with some initial values.
fn hash(buf: &[u8], (a, b, c, d): (u64, u64, u64, u64)) -> State
Hash a buffer with some seed.
fn push(&mut self, x: u64)
Write another 64-bit integer into the state.
fn finalize(self) -> u64
Finalize the state.
Trait Implementations
impl Clone for State
[src]
fn clone(&self) -> State
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more