[][src]Struct tiny_multihash::Sha2Digest

pub struct Sha2Digest<S: Size>(_);

Multihash digest.

Trait Implementations

impl<S: Size> AsMut<[u8]> for Sha2Digest<S>[src]

impl<S: Size> AsRef<[u8]> for Sha2Digest<S>[src]

impl<S: Clone + Size> Clone for Sha2Digest<S>[src]

impl<S: Size> Copy for Sha2Digest<S> where
    S::ArrayType: Copy
[src]

impl<S: Debug + Size> Debug for Sha2Digest<S>[src]

impl<S: Default + Size> Default for Sha2Digest<S>[src]

impl<S: Size> Digest<S> for Sha2Digest<S>[src]

impl<S: Eq + Size> Eq for Sha2Digest<S>[src]

impl<'_> From<&'_ Sha2Digest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Code[src]

impl<'_> From<&'_ Sha2Digest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code[src]

impl<S: Size> From<GenericArray<u8, S>> for Sha2Digest<S>[src]

impl<S: Size> From<Sha2Digest<S>> for GenericArray<u8, S>[src]

impl<S: Hash + Size> Hash for Sha2Digest<S>[src]

impl<S: PartialEq + Size> PartialEq<Sha2Digest<S>> for Sha2Digest<S>[src]

impl<S: Size> StructuralEq for Sha2Digest<S>[src]

impl<S: Size> StructuralPartialEq for Sha2Digest<S>[src]

impl<S: Size, '_> TryFrom<&'_ [u8]> for Sha2Digest<S>[src]

Convert slice to Digest.

It errors when the length of the slice does not match the size of the Digest.

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<S> RefUnwindSafe for Sha2Digest<S> where
    <S as ArrayLength<u8>>::ArrayType: RefUnwindSafe

impl<S> Send for Sha2Digest<S>

impl<S> Sync for Sha2Digest<S>

impl<S> Unpin for Sha2Digest<S> where
    <S as ArrayLength<u8>>::ArrayType: Unpin

impl<S> UnwindSafe for Sha2Digest<S> where
    <S as ArrayLength<u8>>::ArrayType: UnwindSafe

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