pub struct Digest {
message: [u8; 64],
len: usize,
algorithm: &'static Algorithm,
}
Expand description
A calculated digest value.
Use Self::as_ref
to get the value as a &[u8]
.
Fields§
§message: [u8; 64]
The trait Copy
can’t be implemented for dynamic arrays, so we set a
fixed array and the appropriate length.
len: usize
§algorithm: &'static Algorithm
Implementations§
Trait Implementations§
impl Copy 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