Struct std::collections::hash_map::RandomState [] [src]

pub struct RandomState {
    // some fields omitted
}
Unstable

: hashing an hash maps may be altered

RandomState`RandomStateis the default state for` is the default state for HashMap`HashMap` types.

A particular instance RandomState`RandomStatewill create the same instances of` will create the same instances of Hasher`Hasher, but the hashers created by two different`, but the hashers created by two different RandomState`RandomState` instances are unlikely to produce the same result for the same values.

Methods

impl RandomState

fn new() -> RandomState

Unstable

: hashing an hash maps may be altered

Constructs a new RandomState`RandomState` that is initialized with random keys.

Trait Implementations

impl HashState for RandomState

type Hasher = SipHasher

fn hasher(&self) -> SipHasher

impl Default for RandomState

fn default() -> RandomState

Derived Implementations

impl Clone for RandomState

fn clone(&self) -> RandomState

fn clone_from(&mut self, source: &Self)