pub struct DefaultHashBuilder { /* private fields */ }
Expand description
The default hash builder used by HashMap and HashSet.
Default hash builder for the S
type parameter of
HashMap
and 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
.
Trait Implementations§
Source§impl BuildHasher for DefaultHashBuilder
impl BuildHasher for DefaultHashBuilder
Source§type Hasher = DefaultHasher
type Hasher = DefaultHasher
Type of the hasher that will be created.
Source§fn build_hasher(&self) -> <DefaultHashBuilder as BuildHasher>::Hasher
fn build_hasher(&self) -> <DefaultHashBuilder as BuildHasher>::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 · 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 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