pub struct State { /* private fields */ }
Expand description
A SeaHash state.
Implementations
sourceimpl State
impl State
sourcepub fn new(a: u64, b: u64, c: u64, d: u64) -> State
pub fn new(a: u64, b: u64, c: u64, d: u64) -> State
Create a new state vector with some initial values.
sourcepub fn hash(buf: &[u8], (a, b, c, d): (u64, u64, u64, u64)) -> State
pub fn hash(buf: &[u8], (a, b, c, d): (u64, u64, u64, u64)) -> State
Hash a buffer with some seed.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more