Created
April 11, 2019 02:46
-
-
Save kunigami/39af4ecd0c2af18187791b923a8ed021 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct ConsistentHashTable { | |
containers: rbtree::RBTree<u32, Entry>, | |
entries: HashSet<u32>, | |
// The hash function must have the property of mapping strings to | |
// the space of u32 numbers with uniform probability. | |
hash_function: fn (&String) -> u32 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment