Struct libp2p::core::multiaddr::multihash::Sha2Digest [−][src]
pub struct Sha2Digest<S>(_)
where
S: Size;
Multihash digest.
Trait Implementations
impl<S> Clone for Sha2Digest<S> where
S: Clone + Size,
[src]
impl<S> Clone for Sha2Digest<S> where
S: Clone + Size,
[src]pub fn clone(&self) -> Sha2Digest<S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S> Debug for Sha2Digest<S> where
S: Debug + Size,
[src]
impl<S> Debug for Sha2Digest<S> where
S: Debug + Size,
[src]impl<S> Default for Sha2Digest<S> where
S: Default + Size,
[src]
impl<S> Default for Sha2Digest<S> where
S: Default + Size,
[src]pub fn default() -> Sha2Digest<S>
[src]
impl<S> Digest<S> for Sha2Digest<S> where
S: Size,
[src]
impl<S> Digest<S> for Sha2Digest<S> where
S: Size,
[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<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<'_> From<&'_ Sha2Digest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]impl<S> From<GenericArray<u8, S>> for Sha2Digest<S> where
S: Size,
[src]
impl<S> From<GenericArray<u8, S>> for Sha2Digest<S> where
S: Size,
[src]pub fn from(array: GenericArray<u8, S>) -> Sha2Digest<S>
[src]
impl<S> Hash for Sha2Digest<S> where
S: Hash + Size,
[src]
impl<S> Hash for Sha2Digest<S> where
S: Hash + Size,
[src]impl<S> PartialEq<Sha2Digest<S>> for Sha2Digest<S> where
S: PartialEq<S> + Size,
[src]
impl<S> PartialEq<Sha2Digest<S>> for Sha2Digest<S> where
S: PartialEq<S> + Size,
[src]pub fn eq(&self, other: &Sha2Digest<S>) -> bool
[src]
pub fn ne(&self, other: &Sha2Digest<S>) -> bool
[src]
impl<'_, S> TryFrom<&'_ [u8]> for Sha2Digest<S> where
S: Size,
[src]
impl<'_, S> TryFrom<&'_ [u8]> for Sha2Digest<S> where
S: Size,
[src]Convert slice to Digest
.
It errors when the length of the slice does not match the size of the Digest
.
impl<S> Copy for Sha2Digest<S> where
S: Size,
<S as ArrayLength<u8>>::ArrayType: Copy,
[src]
S: Size,
<S as ArrayLength<u8>>::ArrayType: Copy,
impl<S> Eq for Sha2Digest<S> where
S: Eq + Size,
[src]
S: Eq + Size,
impl<S> StructuralEq for Sha2Digest<S> where
S: Size,
[src]
S: Size,
impl<S> StructuralPartialEq for Sha2Digest<S> where
S: Size,
[src]
S: Size,
Auto Trait Implementations
impl<S> RefUnwindSafe for Sha2Digest<S> where
<S as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<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,
<S as ArrayLength<u8>>::ArrayType: Unpin,
impl<S> UnwindSafe for Sha2Digest<S> where
<S as ArrayLength<u8>>::ArrayType: UnwindSafe,
<S as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
impl<T> CallHasher for T where
T: Hash,
[src]
impl<T> CallHasher for T where
T: Hash,
[src]impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,