pub struct XxHash64 { /* private fields */ }
Expand description
Calculates the 64-bit hash.
Implementations§
Trait Implementations§
source§impl FixedOutput for XxHash64
impl FixedOutput for XxHash64
source§fn finalize_into(self, out: &mut Output<Self>)
fn finalize_into(self, out: &mut Output<Self>)
Consume value and write result into provided array.
source§fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and consume the hasher instance.
source§impl Hasher for XxHash64
impl Hasher for XxHash64
1.26.0 · source§fn write_u128(&mut self, i: u128)
fn write_u128(&mut self, i: u128)
Writes a single
u128
into this hasher.1.3.0 · source§fn write_usize(&mut self, i: usize)
fn write_usize(&mut self, i: usize)
Writes a single
usize
into this hasher.1.26.0 · source§fn write_i128(&mut self, i: i128)
fn write_i128(&mut self, i: i128)
Writes a single
i128
into this hasher.1.3.0 · source§fn write_isize(&mut self, i: isize)
fn write_isize(&mut self, i: isize)
Writes a single
isize
into this hasher.source§fn write_length_prefix(&mut self, len: usize)
fn write_length_prefix(&mut self, len: usize)
🔬This is a nightly-only experimental API. (
hasher_prefixfree_extras
)Writes a length prefix into this hasher, as part of being prefix-free. Read more
source§impl OutputSizeUser for XxHash64
impl OutputSizeUser for XxHash64
source§impl PartialEq<XxHash64> for XxHash64
impl PartialEq<XxHash64> for XxHash64
impl Copy for XxHash64
impl HashMarker for XxHash64
impl StructuralPartialEq for XxHash64
Auto Trait Implementations§
impl RefUnwindSafe for XxHash64
impl Send for XxHash64
impl Sync for XxHash64
impl Unpin for XxHash64
impl UnwindSafe for XxHash64
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<D> Digest for Dwhere
D: FixedOutput + Default + Update + HashMarker,
impl<D> Digest for Dwhere D: FixedOutput + Default + Update + HashMarker,
source§fn new_with_prefix(data: impl AsRef<[u8]>) -> Dwhere
D: Default,
fn new_with_prefix(data: impl AsRef<[u8]>) -> Dwhere D: Default,
Create new hasher instance which has processed the provided data.
source§fn chain_update(self, data: impl AsRef<[u8]>) -> D
fn chain_update(self, data: impl AsRef<[u8]>) -> D
Process input data in a chained manner.
source§fn finalize(self) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>
fn finalize(self) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>
Retrieve result and consume hasher instance.
source§fn finalize_into(
self,
out: &mut GenericArray<u8, <D as OutputSizeUser>::OutputSize>
)
fn finalize_into( self, out: &mut GenericArray<u8, <D as OutputSizeUser>::OutputSize> )
Write result into provided array and consume the hasher instance.
source§fn finalize_reset(
&mut self
) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>where
D: FixedOutputReset,
fn finalize_reset( &mut self ) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>where D: FixedOutputReset,
Retrieve result and reset hasher instance.
source§fn finalize_into_reset(
&mut self,
out: &mut GenericArray<u8, <D as OutputSizeUser>::OutputSize>
)where
D: FixedOutputReset,
fn finalize_into_reset( &mut self, out: &mut GenericArray<u8, <D as OutputSizeUser>::OutputSize> )where D: FixedOutputReset,
Write result into provided array and reset the hasher instance.
source§fn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher
source§fn digest(
data: impl AsRef<[u8]>
) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>
fn digest( data: impl AsRef<[u8]> ) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>
Compute hash of
data
.