pub trait HashWith: AsRef<[u8]> + From<Digest> {
// Provided methods
fn hash_with(&self, tag: &[u8]) -> Self { ... }
fn hash_with_many(&self, tags: &[&[u8]]) -> Self { ... }
}Expand description
A generic trait for hashing with a tag.
Provided Methods§
Sourcefn hash_with(&self, tag: &[u8]) -> Self
fn hash_with(&self, tag: &[u8]) -> Self
Hash the current value with the given tag, returning a new value.
fn hash_with_many(&self, tags: &[&[u8]]) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".