pub struct DefaultHashBuilder(pub(crate) RandomState);Expand description
The default BuildHasher used by the cache.
The hashing algorithm behind this type is an implementation detail and may
change in any release. Name this type — don’t rely on the concrete hasher
it wraps. The underlying hasher is selected by the custom-hasher feature
(a fast non-cryptographic hasher when enabled, the std library’s
RandomState otherwise).
Tuple Fields§
§0: RandomStateTrait Implementations§
Source§impl BuildHasher for DefaultHashBuilder
impl BuildHasher for DefaultHashBuilder
Source§type Hasher = <RandomState as BuildHasher>::Hasher
type Hasher = <RandomState as BuildHasher>::Hasher
Type of the hasher that will be created.
Source§fn build_hasher(&self) -> Self::Hasher
fn build_hasher(&self) -> Self::Hasher
Creates a new hasher. Read more
Source§impl Clone for DefaultHashBuilder
impl Clone for DefaultHashBuilder
Source§fn clone(&self) -> DefaultHashBuilder
fn clone(&self) -> DefaultHashBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultHashBuilder
impl Debug for DefaultHashBuilder
Source§impl Default for DefaultHashBuilder
impl Default for DefaultHashBuilder
Source§fn default() -> DefaultHashBuilder
fn default() -> DefaultHashBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefaultHashBuilder
impl RefUnwindSafe for DefaultHashBuilder
impl Send for DefaultHashBuilder
impl Sync for DefaultHashBuilder
impl Unpin for DefaultHashBuilder
impl UnsafeUnpin for DefaultHashBuilder
impl UnwindSafe for DefaultHashBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more