fhash 0.7.1

Blazingly fast hash for HashMaps in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![no_std]

use fhash::RandomState;
use hashbrown::HashSet;

fn main() {
    let bytes = b"Hello, World!";

    // Input your own seed from any other source of randomness
    let mut set: HashSet<&[u8], RandomState> = HashSet::with_hasher(RandomState::from(123));

    set.insert(bytes);

    // Do stuff with set
}