Struct jmt::TransparentHasher
source · pub struct TransparentHasher { /* private fields */ }
Expand description
A trivial implementation of SimpleHasher
that simply returns the first 32 bytes of the
provided data. This is useful to avoid hashing data when testing, and facilitate debugging
specific tree configurations.
Trait Implementations§
source§impl SimpleHasher for TransparentHasher
impl SimpleHasher for TransparentHasher
Auto Trait Implementations§
impl Freeze for TransparentHasher
impl RefUnwindSafe for TransparentHasher
impl Send for TransparentHasher
impl Sync for TransparentHasher
impl Unpin for TransparentHasher
impl UnwindSafe for TransparentHasher
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