[src]

Trait std::hash::Hash

pub trait Hash<S> {
    fn hash(&self, state: &mut S);
}

A trait that represents a hashable type. The S type parameter is an abstract hash state that is used by the Hash to compute the hash. It defaults to std::hash::sip::SipState.

Required Methods

fn hash(&self, state: &mut S)

Compute a hash of the value.

Implementors