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§
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>
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.