Struct DefaultHasher
pub struct DefaultHasher(pub(in ::hash::random) SipHasher13);
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.
Fields
0: SipHasher13
Implementations
impl DefaultHasher
const fn new() -> DefaultHasherCreates a new
DefaultHasher.This hasher is not guaranteed to be the same as all other
DefaultHasherinstances, but is the same as all otherDefaultHasherinstances created throughnewordefault.
Trait Implementations
impl Clone for DefaultHasher
fn clone(&self) -> DefaultHasher
impl Debug for DefaultHasher
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for DefaultHasher
fn default() -> DefaultHasherCreates a new
DefaultHasherusingnew. See its documentation for more.
impl Hasher for DefaultHasher
fn write(&mut self, msg: &[u8])fn write_str(&mut self, s: &str)fn finish(&self) -> u64
Auto Trait Implementations
impl Freeze for DefaultHasher
impl RefUnwindSafe for DefaultHasher
impl Send for DefaultHasher
impl Sync for DefaultHasher
impl Unpin for DefaultHasher
impl UnsafeUnpin for DefaultHasher
impl UnwindSafe for DefaultHasher
Blanket Implementations
impl<T> Any for DefaultHasher
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DefaultHasher
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DefaultHasher
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DefaultHasher
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DefaultHasher
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for DefaultHasher
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for DefaultHasher
impl<T> ToOwned for DefaultHasher
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for DefaultHasher
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DefaultHasher
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for DefaultHasher
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>