Feature gate: #![feature(const_hash)]
This is a tracking issue for constructing "hashers" in const conext.
Public API
// std::collections::hash
impl DefaultHasher {
pub const fn new() -> DefaultHasher;
}
impl SipHasher {
#[deprecated]
pub const fn new() -> SipHasher;
#[deprecated]
pub const fn new_with_keys(key0: u64, key1: u64) -> SipHasher;
}
impl SipHasher13 {
#[deprecated]
pub const fn new() -> SipHasher;
#[deprecated]
pub const fn new_with_keys(key0: u64, key1: u64) -> SipHasher;
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(const_hash)]This is a tracking issue for constructing "hashers" in const conext.
Public API
Steps / History
Hash,HasherandBuildHasher#[const_trait]and makeSipconstHasher#104060Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩