Trait im::hash::SharedHasher [] [src]

pub trait SharedHasher: BuildHasher {
    fn shared_hasher() -> Arc<Self>;
}

A trait for acquiring a global shared BuildHasher instance.

This is desirable because, unlike mutable data structures, persistent data structures can share data between them. Shared subtrees of hash maps must be using the same hasher to be compatible with each other, and so this trait is provided to make that easier to accomplish without increased boilerplate and one more thing to keep track of.

Required Methods

Get a reference to a global instance of BuildHasher for the hashing algorithm we're implementing.

Implementations on Foreign Types

impl SharedHasher for RandomState
[src]

[src]

Implementors