MinDigest

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§

Source§

impl MinDigest for Crc32c

Source§

impl<MD: MinDigest, T> MinDigest for WriteHasher<MD, T>

Source§

impl<T: Digest> MinDigest for T

Available on crate feature digest only.