Feature gate: #![feature(const_collections_with_hasher)]
This is a tracking issue for making HashMap::with_hasher and HashSet::with_hasher const.
Public API
// std::collections
impl<K, V, S> HashMap<K, V, S> {
pub const fn with_hasher(hash_builder: S) -> HashMap<K, V, S> { ... }
}
impl<T, S> HashSet<T, S> {
pub const fn with_hasher(hasher: S) -> HashSet<T, S> { ... }
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(const_collections_with_hasher)]This is a tracking issue for making
HashMap::with_hasherandHashSet::with_hasherconst.Public API
Steps / History
Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩