[][src]Struct xxhrs::XXH32

pub struct XXH32 { /* fields omitted */ }

xxhash 32 bit c library bindings

Streaming mode is used just like the Hasher trait, but does not implement the trait because this returns u32, hasher requires u64

Implementations

impl XXH32[src]

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

One-shot hashing

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

One-shot hashing with seed

pub fn new() -> XXH32[src]

Streaming hashing

pub fn with_seed(seed: u32) -> XXH32[src]

Streaming hashing with seed

pub fn write(&mut self, bytes: &[u8])[src]

pub fn finish(&self) -> u32[src]

Trait Implementations

impl Clone for XXH32[src]

impl Default for XXH32[src]

Auto Trait Implementations

impl RefUnwindSafe for XXH32

impl Send for XXH32

impl Sync for XXH32

impl Unpin for XXH32

impl UnwindSafe for XXH32

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.