pub struct Digest(/* private fields */);Expand description
Hash function output.
§Examples
use qudag_crypto::hash::Digest;
let digest = Digest(vec![0x12, 0x34, 0x56, 0x78]);
let bytes = digest.as_bytes();
assert_eq!(bytes, &[0x12, 0x34, 0x56, 0x78]);Implementations§
Trait Implementations§
impl Eq for Digest
impl StructuralPartialEq for Digest
Auto Trait Implementations§
impl Freeze for Digest
impl RefUnwindSafe for Digest
impl Send for Digest
impl Sync for Digest
impl Unpin 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