[][src]Struct mohan::hash::BlakeHasher

pub struct BlakeHasher { /* fields omitted */ }

Hasher used to build tree @ 256bits

Methods

impl BlakeHasher[src]

pub fn new() -> Self[src]

pub fn new_personal(personal: &[u8]) -> Self[src]

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

Feed data into Hash State

pub fn finalize(&self) -> H256[src]

Returns the hash value for the data stream and consumes state.

pub fn chain(self, data: &[u8]) -> Self where
    Self: Sized
[src]

Method that writes data then returns self

Trait Implementations

impl Default for BlakeHasher[src]

Auto Trait Implementations

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, U> Cast<U> for T where
    U: FromCast<T>, 

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,