Skip to main content

ReadableHasher

Trait ReadableHasher 

Source
pub trait ReadableHasher: Default {
    type Reader: ByteReader;

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

Trait for hashers that produce readable hashes.

Required Associated Types§

Required Methods§

Source

fn update(&mut self, data: &[u8])

Source

fn finalize(self) -> Self::Reader

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§