pub trait Digest: Eq + PartialEq + Display + Debug + Sized + Digest {
type Bytes;
const DIGEST_LEN: usize;
// Required methods
fn from_bytes(bytes: Self::Bytes) -> Self;
fn bytes(&self) -> Self::Bytes;
}
Expand description
The output of a Hash
.
Required Associated Types§
Required Associated Constants§
sourceconst DIGEST_LEN: usize
const DIGEST_LEN: usize
The length in bytes of this digest.
Required Methods§
sourcefn from_bytes(bytes: Self::Bytes) -> Self
fn from_bytes(bytes: Self::Bytes) -> Self
Constructs a new digest from bytes.
Object Safety§
This trait is not object safe.