Trait same::RefHash[][src]

pub trait RefHash {
    fn ref_hash<H: Hasher>(&self, hasher: &mut H);
}

Hashes the pointer to the object instead of the object itself.

This trait works exatly like Hash, the only difference being that it hashes the pointer.

Required Methods

Feeds the value into the hasher.

Implementations on Foreign Types

impl<'a, T> RefHash for &'a T
[src]

impl<T> RefHash for Rc<T>
[src]

impl<T> RefHash for Arc<T>
[src]

Implementors