Struct std::collections::hash_map::DefaultHasher
1.13.0 · source · [−]pub struct DefaultHasher(_);Expand description
The default Hasher used by RandomState.
The internal algorithm is not specified, and so it and its hashes should not be relied upon over releases.
Implementations
impl DefaultHasher
source
impl DefaultHasher
sourcepub fn new() -> DefaultHasher
source
pub fn new() -> DefaultHasher
sourceCreates a new DefaultHasher.
This hasher is not guaranteed to be the same as all other
DefaultHasher instances, but is the same as all other DefaultHasher
instances created through new or default.
Trait Implementations
impl Clone for DefaultHasher
source
impl Clone for DefaultHasher
sourcefn clone(&self) -> DefaultHasher
source
fn clone(&self) -> DefaultHasher
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for DefaultHasher
source
impl Debug for DefaultHasher
sourceimpl Default for DefaultHasher
source
impl Default for DefaultHasher
sourcefn default() -> DefaultHasher
source
fn default() -> DefaultHasher
sourceCreates a new DefaultHasher using new.
See its documentation for more.
impl Hasher for DefaultHasher
source
impl Hasher for DefaultHasher
sourcefn write_u128(&mut self, i: u128)
1.26.0 · source
fn write_u128(&mut self, i: u128)
1.26.0 · sourceWrites a single u128 into this hasher.
fn write_usize(&mut self, i: usize)
1.3.0 · source
fn write_usize(&mut self, i: usize)
1.3.0 · sourceWrites a single usize into this hasher.
fn write_i128(&mut self, i: i128)
1.26.0 · source
fn write_i128(&mut self, i: i128)
1.26.0 · sourceWrites a single i128 into this hasher.
fn write_isize(&mut self, i: isize)
1.3.0 · source
fn write_isize(&mut self, i: isize)
1.3.0 · sourceWrites a single isize into this hasher.
fn write_length_prefix(&mut self, len: usize)
source
fn write_length_prefix(&mut self, len: usize)
sourceWrites a length prefix into this hasher, as part of being prefix-free. Read more
Auto Trait Implementations
impl RefUnwindSafe for DefaultHasher
impl Send for DefaultHasher
impl Sync for DefaultHasher
impl Unpin for DefaultHasher
impl UnwindSafe for DefaultHasher
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more