Struct Hasher
pub(in ::hash::sip) struct Hasher<S: Sip> { pub(in ::hash::sip) k0: u64, pub(in ::hash::sip) k1: u64, pub(in ::hash::sip) length: usize, pub(in ::hash::sip) state: State, pub(in ::hash::sip) tail: u64, pub(in ::hash::sip) ntail: usize, pub(in ::hash::sip) _marker: PhantomData<S> }
Fields
k0: u64k1: u64length: usizestate: Statetail: u64ntail: usize_marker: PhantomData<S>
Implementations
impl<S: Sip> Hasher<S>
const fn new_with_keys(key0: u64, key1: u64) -> Hasher<S>const fn reset(&mut self)
Trait Implementations
impl<S: Debug + Sip> Debug for Hasher<S>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S: Sip> Clone for Hasher<S>
fn clone(&self) -> Hasher<S>
impl<S: Sip> Default for Hasher<S>
fn default() -> Hasher<S>Creates a
Hasher<S>with the two initial keys set to 0.
impl<S: Sip> Hasher for Hasher<S>
fn write(&mut self, msg: &[u8])fn write_str(&mut self, s: &str)fn finish(&self) -> u64
Auto Trait Implementations
impl<S> Freeze for Hasher<S>
where
PhantomData<S>: Freeze,
impl<S> RefUnwindSafe for Hasher<S>
where
PhantomData<S>: RefUnwindSafe,
impl<S> Send for Hasher<S>
where
PhantomData<S>: Send,
impl<S> Sync for Hasher<S>
where
PhantomData<S>: Sync,
impl<S> Unpin for Hasher<S>
where
PhantomData<S>: Unpin,
impl<S> UnsafeUnpin for Hasher<S>
where
PhantomData<S>: UnsafeUnpin,
impl<S> UnwindSafe for Hasher<S>
where
PhantomData<S>: UnwindSafe,
Blanket Implementations
impl<T> Any for Hasher<S>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Hasher<S>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Hasher<S>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Hasher<S>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Hasher<S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Hasher<S>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Hasher<S>
impl<T, U> Into<U> for Hasher<S>
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 Hasher<S>
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 Hasher<S>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>