HashKind

Trait HashKind 

Source
pub trait HashKind<T> {
    // Required method
    fn hash<S: ShareKind, H: Hasher>(inner: &S::Inner<T>, state: &mut H);
}
Expand description

A way of hashing a shared value

Required Methods§

Source

fn hash<S: ShareKind, H: Hasher>(inner: &S::Inner<T>, state: &mut H)

Hash a shared value

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§

Source§

impl<T> HashKind<T> for ByRef

Source§

impl<T: Hash> HashKind<T> for ByVal