Skip to main content

HashWith

Trait HashWith 

Source
pub trait HashWith: AsRef<[u8]> + From<Digest> {
    // Provided method
    fn hash_with(&self, tag: &[u8]) -> Self { ... }
}
Expand description

A generic trait for hashing with a tag.

Provided Methods§

Source

fn hash_with(&self, tag: &[u8]) -> Self

Hash the current value with the given tag, returning a new value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: AsRef<[u8]> + From<Digest>> HashWith for T