Trait ContentHasher

Source
pub trait ContentHasher
where Self: Write + Sized,
{ type Digest: Eq + Hash + Clone + Content<Self> + AsRef<[u8]>; // Required methods fn new() -> Self; fn fin(self) -> Self::Digest; // Provided method fn null() -> Self::Digest { ... } }

Required Associated Types§

Source

type Digest: Eq + Hash + Clone + Content<Self> + AsRef<[u8]>

Required Methods§

Source

fn new() -> Self

Source

fn fin(self) -> Self::Digest

Provided Methods§

Source

fn null() -> Self::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§

Source§

impl ContentHasher for BlakeWrap

Source§

type Digest = BlakeResultWrap