Feature gate: #![feature(build_hasher_simple_hash_one)]
This is a tracking issue for the hash_one method on the BuildHasher trait. This is a convenience method to make it easier to get the hash of a value, such as when implementing a hash table or when writing unit tests.
Public API
pub trait BuildHasher { // existing trait
fn hash_one<T: Hash>(&self, x: T) -> u64
where
Self: Sized; // new method, with provided implementation
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(build_hasher_simple_hash_one)]This is a tracking issue for the
hash_onemethod on theBuildHashertrait. This is a convenience method to make it easier to get the hash of a value, such as when implementing a hash table or when writing unit tests.Public API
Steps / History
BuildHasher::hash_oneas unstable #86151Self: Sized: MakeBuildHasherobject safe #88031Unresolved Questions