pub struct HashBuilder { /* private fields */ }Expand description
Generic hash builder
Implementations§
Source§impl HashBuilder
impl HashBuilder
Sourcepub fn new(algorithm: HashAlgorithm) -> Self
pub fn new(algorithm: HashAlgorithm) -> Self
Create a new hash builder
Sourcepub fn compute_to(&self, data: &[u8], output: &mut [u8])
pub fn compute_to(&self, data: &[u8], output: &mut [u8])
Compute hash to provided buffer (zero-allocation)
Sourcepub fn output_size(&self) -> usize
pub fn output_size(&self) -> usize
Get output size
Auto Trait Implementations§
impl Freeze for HashBuilder
impl RefUnwindSafe for HashBuilder
impl Send for HashBuilder
impl Sync for HashBuilder
impl Unpin for HashBuilder
impl UnwindSafe for HashBuilder
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