Struct SipHasher13
struct SipHasher13 { ... }
An implementation of SipHash128 1-3.
Implementations
impl SipHasher13
fn new() -> SipHasher13Creates a new
SipHasher13with the two initial keys set to 0.fn new_with_keys(key0: u64, key1: u64) -> SipHasher13Creates a
SipHasher13that is keyed off the provided keys.fn new_with_key(key: &[u8; 16]) -> SipHasher13Creates a
SipHasher13from a 16 byte key.fn keys(self: &Self) -> (u64, u64)Get the keys used by this hasher
fn key(self: &Self) -> [u8; 16]Get the key used by this hasher as a 16 byte vector
fn hash(self: &Self, bytes: &[u8]) -> Hash128Hash a byte array - This is the easiest and safest way to use SipHash.
impl Clone for SipHasher13
fn clone(self: &Self) -> SipHasher13
impl Copy for SipHasher13
impl Debug for SipHasher13
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Default for SipHasher13
fn default() -> SipHasher13
impl Freeze for SipHasher13
impl Hasher for SipHasher13
fn write(self: &mut Self, msg: &[u8])fn finish(self: &Self) -> u64fn write_usize(self: &mut Self, i: usize)fn write_u8(self: &mut Self, i: u8)fn write_u16(self: &mut Self, i: u16)fn write_u32(self: &mut Self, i: u32)fn write_u64(self: &mut Self, i: u64)
impl Hasher128 for SipHasher13
fn finish128(self: &Self) -> Hash128Return a 128-bit hash
impl RefUnwindSafe for SipHasher13
impl Send for SipHasher13
impl Sync for SipHasher13
impl Unpin for SipHasher13
impl UnsafeUnpin for SipHasher13
impl UnwindSafe for SipHasher13
impl<T> Any for SipHasher13
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for SipHasher13
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for SipHasher13
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for SipHasher13
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for SipHasher13
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for SipHasher13
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for SipHasher13
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for SipHasher13
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>