[][src]Struct casper_node::crypto::hash::Digest

pub struct Digest(_);

The hash digest; a wrapped u8 array.

Implementations

impl Digest[src]

pub const LENGTH: usize[src]

Length of Digest in bytes.

pub fn to_array(&self) -> [u8; 32][src]

Returns a copy of the wrapped u8 array.

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

Returns a copy of the wrapped u8 array as a Vec

pub fn from_hex<T: AsRef<[u8]>>(hex_input: T) -> Result<Self, Error>[src]

Returns a Digest parsed from a hex-encoded Digest.

Trait Implementations

impl AsRef<[u8]> for Digest[src]

impl Clone for Digest[src]

impl Copy for Digest[src]

impl DataSize for Digest[src]

impl Debug for Digest[src]

impl Default for Digest[src]

impl<'de> Deserialize<'de> for Digest[src]

impl Display for Digest[src]

impl Eq for Digest[src]

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

impl From<Blake2bHash> for Digest[src]

impl From<Digest> for Blake2bHash[src]

impl From<Digest> for BlockHash[src]

impl From<Digest> for DeployHash[src]

impl FromBytes for Digest[src]

impl Hash for Digest[src]

impl LowerHex for Digest[src]

impl Ord for Digest[src]

impl PartialEq<Digest> for Digest[src]

impl PartialOrd<Digest> for Digest[src]

impl Serialize for Digest[src]

impl StructuralEq for Digest[src]

impl StructuralPartialEq for Digest[src]

impl ToBytes for Digest[src]

impl<'_> TryFrom<&'_ [u8]> for Digest[src]

type Error = TryFromSliceError

The type returned in the event of a conversion error.

impl UpperHex for Digest[src]

Auto Trait Implementations

impl RefUnwindSafe for Digest

impl Send for Digest

impl Sync for Digest

impl Unpin for Digest

impl UnwindSafe for Digest

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> RuleType for T where
    T: Eq + Ord + Copy + Debug + Hash
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

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>, 

impl<T> WithSubscriber for T[src]