Struct Xxh3Hash64Hasher

Source
pub struct Xxh3Hash64Hasher(/* private fields */);
Expand description

Xxh3Hash64 hasher.

Implementations§

Source§

impl Xxh3Hash64Hasher

Source

pub fn new() -> Self

Create a new hasher.

Source

pub fn write_value<T: DeterministicHash>(&mut self, input: T)

Uses the DeterministicHash trait to hash the input in a cross-platform way.

Source

pub fn write_ref<T: DeterministicHash>(&mut self, input: &T)

Uses the DeterministicHash trait to hash the input in a cross-platform way.

Source

pub fn finish(&self) -> u64

Finish the hash computation and return the digest.

Trait Implementations§

Source§

impl Default for Xxh3Hash64Hasher

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl DeterministicHasher for Xxh3Hash64Hasher

Source§

fn finish(&self) -> u64

Source§

fn write_bytes(&mut self, bytes: &[u8])

Source§

fn write_u8(&mut self, i: u8)

Writes a single u8 to this hasher
Source§

fn write_usize(&mut self, i: usize)

Writes a single usize to this hasher
Source§

fn write_isize(&mut self, i: isize)

Writes a single isize to this hasher
Source§

fn write_u16(&mut self, i: u16)

Writes a single $ty to this hasher
Source§

fn write_u32(&mut self, i: u32)

Writes a single $ty to this hasher
Source§

fn write_u64(&mut self, i: u64)

Writes a single $ty to this hasher
Source§

fn write_i8(&mut self, i: i8)

Writes a single $ty to this hasher
Source§

fn write_i16(&mut self, i: i16)

Writes a single $ty to this hasher
Source§

fn write_i32(&mut self, i: i32)

Writes a single $ty to this hasher
Source§

fn write_i64(&mut self, i: i64)

Writes a single $ty to this hasher
Source§

fn write_u128(&mut self, i: u128)

Writes a single $ty to this hasher
Source§

fn write_i128(&mut self, i: i128)

Writes a single $ty to this hasher

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V