Closed
Description
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
- Implementation: Add
BuildHasher::hash_one
as unstable #86151 - Add missing
Self: Sized
: MakeBuildHasher
object safe #88031 - Final commenting period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.