Trait Digestible

Source
pub trait Digestible<D: Digest>:
    Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn digest(&self) -> D;
}
Expand description

An object that can generate a digest.

Required Methods§

Source

fn digest(&self) -> D

Generate a digest from the object.

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§