Trait MarkedDigest

Source
pub trait MarkedDigest<D>:
    Digest
    + Default
    + Write{
    // Required methods
    fn finalize_marked(self) -> D;
    fn digest_marked(data: &[u8]) -> D;
}
Expand description

A marked digest

Required Methods§

Source

fn finalize_marked(self) -> D

Produce a marked digest from the hasher

Source

fn digest_marked(data: &[u8]) -> D

Shortcut to produce a marked digest

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§