[−][src]Trait mundane::hash::Digest
The output of a Hash
.
Associated Types
type Bytes
The byte array equivalent of this digest.
Bytes
is guaranteed to be [u8; DIGEST_LEN]
. Once const generics are
supported, this type will be removed and replaced with [u8; DIGEST_LEN]
.
Associated Constants
const DIGEST_LEN: usize
The length in bytes of this digest.
Required methods
#[must_use]
fn from_bytes(bytes: Self::Bytes) -> Self
Constructs a new digest from bytes.
#[must_use]
fn bytes(&self) -> Self::Bytes
Returns the bytes of this digest.