pub trait Digestible {
    // Required method
    fn digest<S: Sha256>(&self) -> Digest;
}
Expand description

Defines a collision resistant hash for the typed and structured data.

Required Methods§

source

fn digest<S: Sha256>(&self) -> Digest

Calculate a collision resistant hash for the typed and structured data.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Digestible for Vec<u8>

source§

fn digest<S: Sha256>(&self) -> Digest

source§

impl Digestible for [u8]

source§

fn digest<S: Sha256>(&self) -> Digest

source§

impl<T: Digestible> Digestible for Option<T>

source§

fn digest<S: Sha256>(&self) -> Digest

Implementors§