pub trait ToBlake3Hash {
    // Required method
    fn hash(&self) -> Hash;
}
Expand description

This trait ensures that a type can be converted into a Blake3 Hash. This can be useful especially for equality checks since blake3::Hash already implements constant time equality checks

Required Methods§

source

fn hash(&self) -> Hash

The outcome of hashing Self with blake3::hash

Implementors§