#[cfg(feature = "default-hasher")] use {
core::hash::{BuildHasher, Hasher},
foldhash::fast::RandomState,
};
/// Default hash builder for the `S` type parameter of /// [`HashMap`](crate::HashMap) and [`HashSet`](crate::HashSet). /// /// This only implements `BuildHasher` when the "default-hasher" crate feature /// is enabled; otherwise it just serves as a placeholder, and a custom `S` type /// must be used to have a fully functional `HashMap` or `HashSet`. #[derive(Clone, Debug, Default)] pubstruct DefaultHashBuilder { #[cfg(feature = "default-hasher")]
inner: RandomState,
}
#[cfg(feature = "default-hasher")] impl BuildHasher for DefaultHashBuilder { type Hasher = DefaultHasher;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.