[][src]Struct casperlabs_engine_shared::newtypes::Blake2bHash

pub struct Blake2bHash(_);

Represents a 32-byte BLAKE2b hash digest

Methods

impl Blake2bHash[src]

pub fn new(data: &[u8]) -> Self[src]

Creates a 32-byte BLAKE2b hash digest from a given a piece of data

pub fn to_vec(&self) -> Vec<u8>[src]

Converts the underlying BLAKE2b hash digest array to a Vec

Trait Implementations

impl Clone for Blake2bHash[src]

impl Copy for Blake2bHash[src]

impl Debug for Blake2bHash[src]

impl Display for Blake2bHash[src]

impl Eq for Blake2bHash[src]

impl From<[u8; 32]> for Blake2bHash[src]

impl FromBytes for Blake2bHash[src]

impl Hash for Blake2bHash[src]

impl Into<[u8; 32]> for Blake2bHash[src]

impl LowerHex for Blake2bHash[src]

impl Ord for Blake2bHash[src]

impl PartialEq<Blake2bHash> for Blake2bHash[src]

impl PartialOrd<Blake2bHash> for Blake2bHash[src]

impl StructuralEq for Blake2bHash[src]

impl StructuralPartialEq for Blake2bHash[src]

impl ToBytes for Blake2bHash[src]

impl<'a> TryFrom<&'a [u8]> for Blake2bHash[src]

type Error = TryFromSliceError

The type returned in the event of a conversion error.

impl UpperHex for Blake2bHash[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> From<T> for T[src]

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

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.

impl<T> ToString for T where
    T: Display + ?Sized
[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.

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