Struct tet_libp2p::core::multiaddr::multihash::Sha2Digest[]

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

Multihash digest.

Trait Implementations

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

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

impl<S> Clone for Sha2Digest<S> where
    S: Size + Clone

impl<S> Copy for Sha2Digest<S> where
    S: Size,
    <S as ArrayLength<u8>>::ArrayType: Copy

impl<S> Debug for Sha2Digest<S> where
    S: Size + Debug

impl<S> Default for Sha2Digest<S> where
    S: Size + Default

impl<S> Digest<S> for Sha2Digest<S> where
    S: Size

impl<S> Eq for Sha2Digest<S> where
    S: Size + Eq

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

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

impl<S> From<GenericArray<u8, S>> for Sha2Digest<S> where
    S: Size

impl<S> Hash for Sha2Digest<S> where
    S: Size + Hash

impl<S> PartialEq<Sha2Digest<S>> for Sha2Digest<S> where
    S: Size + PartialEq<S>, 

impl<S> StructuralEq for Sha2Digest<S> where
    S: Size

impl<S> StructuralPartialEq for Sha2Digest<S> where
    S: Size

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

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> CallHasher for T where
    T: Hash

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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