Trait object_safe::HashObj

source ·
pub trait HashObj {
    // Required methods
    fn hash_object(&self, state: &mut dyn Hasher);
    fn as_hash_object(&self) -> &dyn HashObj;
}
Expand description

Object-safe version of std::hash::Hash

Required Methods§

source

fn hash_object(&self, state: &mut dyn Hasher)

source

fn as_hash_object(&self) -> &dyn HashObj

Trait Implementations§

source§

impl Hash for dyn HashObj

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more

Implementors§

source§

impl<T: Hash> HashObj for T