Struct mur3::Hasher32[][src]

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

A 32-bit Murmur3 hasher.

Implementations

impl Hasher32[src]

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

Creates a hasher with given seed.

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

Gets the 32-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 Hasher32[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.finish32() as u64.

Auto Trait Implementations

impl Send for Hasher32

impl Sync for Hasher32

impl Unpin for Hasher32

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.