Type Alias RapidInlineBuildHasher

Source
pub type RapidInlineBuildHasher = BuildHasherDefault<RapidInlineHasher>;
Expand description

A std::hash::BuildHasher trait compatible hasher that uses the RapidInlineHasher algorithm.

This is an alias for std::hash::BuildHasherDefault<RapidHasher> with a static seed.

Note there that crate::RapidRandomState with can be used instead for a std::hash::BuildHasher that initialises with a random seed.

§Example

use std::collections::HashMap;
use std::hash::Hasher;
use rapidhash::RapidInlineBuildHasher;

let mut map = HashMap::with_hasher(RapidInlineBuildHasher::default());
map.insert(42, "the answer");

Aliased Type§

pub struct RapidInlineBuildHasher(/* private fields */);