Add a generic implementation of quadratic hash table probing.

We have multiple pre-computed constant hash tables that all use the same
quadratic probing algorithm.

Add a constant_hash Rust module to match the meta/constant_hash.py module.

Move the simple_hash() function into constant_hash. Its Python equivalent is in
the constant_hash.py module.
This commit is contained in:
Jakob Stoklund Olesen
2016-08-18 12:32:46 -07:00
parent c3b7fc9a9c
commit 15d0108e4b
5 changed files with 90 additions and 42 deletions

View File

@@ -23,7 +23,7 @@
use std::fmt;
use std::result;
use simple_hash::simple_hash;
use constant_hash::simple_hash;
/// A string-based configurator for settings groups.
///