Struct libp2p::core::multiaddr::multihash::IdentityDigest [−]
pub struct IdentityDigest<S>(_, _)
where
S: Size;
Expand description
Multihash digest.
Trait Implementations
impl<S> Clone for IdentityDigest<S> where
S: Clone + Size,
impl<S> Clone for IdentityDigest<S> where
S: Clone + Size,
pub fn clone(&self) -> IdentityDigest<S>
pub fn clone(&self) -> IdentityDigest<S>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<S> Debug for IdentityDigest<S> where
S: Debug + Size,
impl<S> Debug for IdentityDigest<S> where
S: Debug + Size,
impl<S> Default for IdentityDigest<S> where
S: Default + Size,
impl<S> Default for IdentityDigest<S> where
S: Default + Size,
pub fn default() -> IdentityDigest<S>
pub fn default() -> IdentityDigest<S>
Returns the “default value” for a type. Read more
impl<S> Digest<S> for IdentityDigest<S> where
S: Size,
impl<S> Digest<S> for IdentityDigest<S> where
S: Size,
pub fn from_reader<R>(r: R) -> Result<IdentityDigest<S>, Error> where
R: Read,
pub fn from_reader<R>(r: R) -> Result<IdentityDigest<S>, Error> where
R: Read,
Reads a multihash digest from a byte stream that contains the digest prefixed with the size. Read more
impl<S> From<GenericArray<u8, S>> for IdentityDigest<S> where
S: Size,
impl<S> From<GenericArray<u8, S>> for IdentityDigest<S> where
S: Size,
pub fn from(array: GenericArray<u8, S>) -> IdentityDigest<S>
pub fn from(array: GenericArray<u8, S>) -> IdentityDigest<S>
Performs the conversion.
impl<S> Hash for IdentityDigest<S> where
S: Hash + Size,
impl<S> Hash for IdentityDigest<S> where
S: Hash + Size,
impl<S> PartialEq<IdentityDigest<S>> for IdentityDigest<S> where
S: PartialEq<S> + Size,
impl<S> PartialEq<IdentityDigest<S>> for IdentityDigest<S> where
S: PartialEq<S> + Size,
pub fn eq(&self, other: &IdentityDigest<S>) -> bool
pub fn eq(&self, other: &IdentityDigest<S>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &IdentityDigest<S>) -> bool
pub fn ne(&self, other: &IdentityDigest<S>) -> bool
This method tests for !=
.
impl<S> Eq for IdentityDigest<S> where
S: Eq + Size,
impl<S> StructuralEq for IdentityDigest<S> where
S: Size,
impl<S> StructuralPartialEq for IdentityDigest<S> where
S: Size,
Auto Trait Implementations
impl<S> RefUnwindSafe for IdentityDigest<S> where
<S as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<S> Send for IdentityDigest<S>
impl<S> Sync for IdentityDigest<S>
impl<S> Unpin for IdentityDigest<S> where
<S as ArrayLength<u8>>::ArrayType: Unpin,
impl<S> UnwindSafe for IdentityDigest<S> where
<S as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more