Struct mur3::Hasher128[][src]

#[repr(C)]pub struct Hasher128 { /* fields omitted */ }

A 128-bit Murmur3 hasher.

Implementations

impl Hasher128[src]

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

Creates a hasher with given seed.

pub fn finish128(&self) -> (u64, u64)[src]

Gets the 128-bit hash result.

This function doesn’t have any side effect. So calling it multiple times without feeding more data will return the same result. New data will resume calculation from last state.

Trait Implementations

impl Hasher for Hasher128[src]

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

Feeds a byte slice to the hasher.

fn finish(&self) -> u64[src]

Gets the 64-bit hash value.

It’s the same as self.finish128().0.

Auto Trait Implementations

impl Send for Hasher128

impl Sync for Hasher128

impl Unpin for Hasher128

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, 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.