pub trait CryptographicHasher<Item: Clone, Out>: Clone {
// Required method
fn hash_iter<I>(&self, input: I) -> Out
where I: IntoIterator<Item = Item>;
// Provided methods
fn hash_iter_slices<'a, I>(&self, input: I) -> Out
where I: IntoIterator<Item = &'a [Item]>,
Item: 'a { ... }
fn hash_slice(&self, input: &[Item]) -> Out { ... }
fn hash_item(&self, input: Item) -> Out { ... }
}
Required Methods§
fn hash_iter<I>(&self, input: I) -> Outwhere
I: IntoIterator<Item = Item>,
Provided Methods§
fn hash_iter_slices<'a, I>(&self, input: I) -> Outwhere
I: IntoIterator<Item = &'a [Item]>,
Item: 'a,
fn hash_slice(&self, input: &[Item]) -> Out
fn hash_item(&self, input: Item) -> Out
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.