Trait HashElem

Source
pub trait HashElem {
    type Output;

    // Required method
    fn hash<I: AsRef<[u8]>>(data: I) -> Self;
}
Expand description

Struct can be generated from hashing

Required Associated Types§

Source

type Output

The type that implements this trait

Required Methods§

Source

fn hash<I: AsRef<[u8]>>(data: I) -> Self

Return a type from hashing data

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.

Implementors§