MultihashDigestExt

Trait MultihashDigestExt 

Source
pub trait MultihashDigestExt<const S: usize>: Hasher + Default {
    // Required methods
    fn size() -> usize;
    fn to_multihash(&mut self) -> Multihash<S>;

    // Provided methods
    fn input_signed_frame<I: FrameReader>(
        &mut self,
        frame: &MultihashFrame<S, Self, I>,
    ) { ... }
    fn multihash_size() -> usize { ... }
    fn update_from_reader<R: Read>(
        &mut self,
        read: R,
    ) -> Result<Multihash<S>, Error> { ... }
}
Expand description

Multihash digest extension.

Required Methods§

Source

fn size() -> usize

Source

fn to_multihash(&mut self) -> Multihash<S>

Provided Methods§

Source

fn input_signed_frame<I: FrameReader>( &mut self, frame: &MultihashFrame<S, Self, I>, )

Source

fn multihash_size() -> usize

Source

fn update_from_reader<R: Read>( &mut self, read: R, ) -> Result<Multihash<S>, Error>

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§