[][src]Struct xxhrs::XXH3_64

pub struct XXH3_64<'a> { /* fields omitted */ }

xxh3 64 bit c library bindings

::default() and ::new() are equivalent; they construct the unseeded streaming variant…

Implementations

impl<'_> XXH3_64<'_>[src]

pub fn hash(bytes: &[u8]) -> u64[src]

One-shot hashing

pub unsafe fn hash_with_entropy_buffer(entropy: &[u8], bytes: &[u8]) -> u64[src]

One-shot hashing with custom entropy buffer.

This corresponds to XXH3_64bits_withSecret. You probably want to use hash_with_entropy instead unless you really need to supply custom size entropy buffers, in which case this is the function to use.

Safety

This function is marked unsafe just to encourage using the EntropyPool abstraction which makes it hard to produce particularly unsafe entropy pools.

The entropy pool must be at least 136 bytes.

pub fn hash_with_entropy(entropy: &EntropyPool, bytes: &[u8]) -> u64[src]

One-shot hashing with custom entropy buffer.

This corresponds to XXH3_64bits_withSecret.

pub fn hash_with_seed(seed: u64, bytes: &[u8]) -> u64[src]

One-shot hashing with seed

pub fn new() -> XXH3_64<'static>[src]

Streaming hashing

pub unsafe fn with_entropy_buffer(entropy: &[u8]) -> XXH3_64<'_>[src]

Streaming hashing with custom entropy buffer.

This corresponds to XXH3_64bits_reset_withSecret.

This function is marked unsafe to discourage it's use; use with_entropy instead which copies the entropy (thus causing far fewer lifetime problems) and uses the safer EntropyPool abstraction.

Safety

Use this function if you really want to avoid the entropy copy or if you really need to use a custom size entropy pool.

The entropy pool must be at least 136 bytes.

pub fn with_entropy(entropy: &EntropyPool) -> XXH3_64<'static>[src]

Streaming hashing with custom entropy buffer.

This corresponds to XXH3_64bits_reset_withSecret.

pub fn with_seed(seed: u64) -> XXH3_64<'static>[src]

Streaming hashing with custom seed.

Trait Implementations

impl<'a> Clone for XXH3_64<'a>[src]

impl<'_> Default for XXH3_64<'_>[src]

impl<'_> Hasher for XXH3_64<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for XXH3_64<'a>

impl<'a> !Send for XXH3_64<'a>

impl<'a> !Sync for XXH3_64<'a>

impl<'a> Unpin for XXH3_64<'a>

impl<'a> UnwindSafe for XXH3_64<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.