pub struct UniversalHash { /* private fields */ }Expand description
UniversalHash v4 hasher
This struct maintains the scratchpads and chain states needed for hashing. It can be reused for multiple hashes to avoid repeated allocations.
Implementations§
Source§impl UniversalHash
impl UniversalHash
Sourcepub fn new() -> UniversalHash
pub fn new() -> UniversalHash
Create a new UniversalHash instance
Allocates 2MB of memory for the scratchpads.
Trait Implementations§
Source§impl Default for UniversalHash
impl Default for UniversalHash
Source§fn default() -> UniversalHash
fn default() -> UniversalHash
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UniversalHash
impl RefUnwindSafe for UniversalHash
impl Send for UniversalHash
impl Sync for UniversalHash
impl Unpin for UniversalHash
impl UnsafeUnpin for UniversalHash
impl UnwindSafe for UniversalHash
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