pub struct Hasher { /* private fields */ }
Implementations§
Source§impl Hasher
impl Hasher
pub fn new(context: Arc<Context>) -> Self
pub fn update(&mut self, context: Arc<Context>)
pub fn context(&self) -> &Context
pub fn hash(&self, inp: &[u8]) -> Output
pub fn hash_first(&mut self, inp: &[u8])
pub fn hash_next(&mut self, next_inp: &[u8]) -> Output
pub fn hash_last(&mut self) -> Output
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hasher
impl RefUnwindSafe for Hasher
impl Unpin for Hasher
impl UnwindSafe for Hasher
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