Struct crev_common::blake2b256::Blake2b256[][src]

pub struct Blake2b256(_);

Trait Implementations

impl Clone for Blake2b256[src]

fn clone(&self) -> Blake2b256[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Blake2b256[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for Blake2b256[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl FixedOutput for Blake2b256[src]

type OutputSize = U32

fn fixed_result(self) -> GenericArray<u8, Self::OutputSize>[src]

Retrieve result and consume hasher instance.

impl Input for Blake2b256[src]

fn input<B: AsRef<[u8]>>(&mut self, data: B)[src]

Digest input data. Read more

fn chain<B>(self, data: B) -> Self where
    B: AsRef<[u8]>, 
[src]

Digest input data in a chained manner.

impl Reset for Blake2b256[src]

fn reset(&mut self)[src]

Reset hasher instance to its initial state and return current state.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<D> Digest for D where
    D: Input + FixedOutput + Reset + Clone + Default
[src]

type OutputSize = <D as FixedOutput>::OutputSize

pub fn new() -> D[src]

Create new hasher instance

pub fn input<B>(&mut self, data: B) where
    B: AsRef<[u8]>, 
[src]

Digest input data. Read more

pub fn chain<B>(self, data: B) -> D where
    B: AsRef<[u8]>, 
[src]

Digest input data in a chained manner.

pub fn result(self) -> GenericArray<u8, <D as Digest>::OutputSize>[src]

Retrieve result and consume hasher instance.

pub fn result_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>[src]

Retrieve result and reset hasher instance. Read more

pub fn reset(&mut self)[src]

Reset hasher instance to its initial state.

pub fn output_size() -> usize[src]

Get output size of the hasher

pub fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>[src]

Convenience function to compute hash of the data. It will handle hasher creation, data feeding and finalization. Read more

impl<D> DynDigest for D where
    D: 'static + Input + FixedOutput + Reset + Clone
[src]

pub fn input(&mut self, data: &[u8])[src]

Digest input data. Read more

pub fn result_reset(&mut self) -> Box<[u8], Global>[src]

Retrieve result and reset hasher instance

pub fn result(self: Box<D, Global>) -> Box<[u8], Global>[src]

Retrieve result and consume boxed hasher instance

pub fn reset(&mut self)[src]

Reset hasher instance to its initial state.

pub fn output_size(&self) -> usize[src]

Get output size of the hasher

pub fn box_clone(&self) -> Box<dyn DynDigest + 'static, Global>[src]

Clone hasher state into a boxed trait object

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

pub fn vzip(self) -> V