pub struct Digest(/* private fields */);Expand description
Fixed-width digest used for protocol commitments.
Digest is Copy for ergonomic identifier wrappers and therefore cannot
zero its backing bytes on drop. Use ZeroizedDigest at processing
boundaries where digest residue must not survive the scope.
Implementations§
Trait Implementations§
impl Copy for Digest
impl Eq for Digest
Source§impl From<Digest> for ZeroizedDigest
impl From<Digest> for ZeroizedDigest
Auto Trait Implementations§
impl Freeze for Digest
impl RefUnwindSafe for Digest
impl Send for Digest
impl Sync for Digest
impl Unpin for Digest
impl UnsafeUnpin for Digest
impl UnwindSafe for Digest
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