Perfect hashing for rust.