Trait MinDigest

Source
pub trait MinDigest {
    type Output;

    // Required methods
    fn update(&mut self, data: impl AsRef<[u8]>);
    fn finalize(self) -> Self::Output;
}
Expand description

A minimal version of [Digest][digest::digest] trait that is used to implement the WriteHasher and all implementations of the Digest trait.

Required Associated Types§

Required Methods§

Source

fn update(&mut self, data: impl AsRef<[u8]>)

Source

fn finalize(self) -> Self::Output

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§