WyHash2
A simple, light and fast hashing algorithm written by Wang Yi. Ported to rust for your ease of use.
Thanks also goes to Eldruin their WyHash was very helpful for reference on getting started.
Features
-
nightlywhich enables some nightly only intrinsicts which can help improve performance. -
stdThis is enabled by default, however can be disabled forno_stdenviroments
Usage
A basic example:
use Hasher;
use WyHash;
Wyhash2 Implements BuildHasher which means it can be used as the hasher for the Hashmap
Usage with a Hashmap:
use WyHash;
use HashMap;
no_std usage
[]
= { = "...", = false }
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.