Trait Digestible

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

An object that can be uniquely represented as a Digest.

Required Methods§

Source

fn digest(&self) -> D

Returns a unique representation of the object as a Digest.

If many objects with Digests are related (map to some higher-level group Digest), you should also implement Committable.

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§