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

Implementors§

source§

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

§

type Output = <MD as MinDigest>::Output

source§

impl<T: Digest> MinDigest for T

§

type Output = GenericArray<u8, <T as OutputSizeUser>::OutputSize>