pub struct State { /* private fields */ }
Expand description
A SeaHash state.
Implementations§
Source§impl 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 Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more