Struct mx3::Mx3Hasher[][src]

pub struct Mx3Hasher { /* fields omitted */ }

Hasher for computing a hash digest of a stream of bytes.

This hasher is not cryptographically secure.

Implementations

impl Mx3Hasher[src]

pub fn new(seed: u64) -> Self[src]

Construct a hasher with the given seed for a stream of bytes.

This constructor is not compatible with the reference design due to the length of the stream being unknown.

pub fn new_with_length(seed: u64, buffer_len: usize) -> Self[src]

Construct a hasher with the given seed and stream length.

This constructor allows compatibility with the reference design. If you are simply hashing a slice, consider using the shorter hash() function instead.

Trait Implementations

impl Clone for Mx3Hasher[src]

impl Debug for Mx3Hasher[src]

impl Default for Mx3Hasher[src]

impl Hasher for Mx3Hasher[src]

Auto Trait Implementations

impl Send for Mx3Hasher

impl Sync for Mx3Hasher

impl Unpin for Mx3Hasher

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.