Struct sc_network::multiaddr::multihash::Blake2sDigest [−]
pub struct Blake2sDigest<S>(_)
where
S: Size;
Expand description
Multihash digest.
Trait Implementations
impl<S> Clone for Blake2sDigest<S> where
S: Clone + Size,
impl<S> Clone for Blake2sDigest<S> where
S: Clone + Size, pub fn clone(&self) -> Blake2sDigest<S>
pub fn clone(&self) -> Blake2sDigest<S>Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
impl<S> Debug for Blake2sDigest<S> where
S: Debug + Size,
impl<S> Debug for Blake2sDigest<S> where
S: Debug + Size, impl<S> Default for Blake2sDigest<S> where
S: Default + Size,
impl<S> Default for Blake2sDigest<S> where
S: Default + Size, pub fn default() -> Blake2sDigest<S>
pub fn default() -> Blake2sDigest<S>Returns the “default value” for a type. Read more
impl<S> Digest<S> for Blake2sDigest<S> where
S: Size,
impl<S> Digest<S> for Blake2sDigest<S> where
S: Size, impl<S> From<GenericArray<u8, S>> for Blake2sDigest<S> where
S: Size,
impl<S> From<GenericArray<u8, S>> for Blake2sDigest<S> where
S: Size, pub fn from(array: GenericArray<u8, S>) -> Blake2sDigest<S>
pub fn from(array: GenericArray<u8, S>) -> Blake2sDigest<S>Performs the conversion.
impl<S> Hash for Blake2sDigest<S> where
S: Hash + Size,
impl<S> Hash for Blake2sDigest<S> where
S: Hash + Size, impl<S> PartialEq<Blake2sDigest<S>> for Blake2sDigest<S> where
S: PartialEq<S> + Size,
impl<S> PartialEq<Blake2sDigest<S>> for Blake2sDigest<S> where
S: PartialEq<S> + Size, pub fn eq(&self, other: &Blake2sDigest<S>) -> bool
pub fn eq(&self, other: &Blake2sDigest<S>) -> boolThis method tests for self and other values to be equal, and is used
by ==. Read more
pub fn ne(&self, other: &Blake2sDigest<S>) -> bool
pub fn ne(&self, other: &Blake2sDigest<S>) -> boolThis method tests for !=.
Convert slice to Digest.
It errors when the length of the slice does not match the size of the Digest.
impl<S> Copy for Blake2sDigest<S> where
S: Size,
<S as ArrayLength<u8>>::ArrayType: Copy, impl<S> Eq for Blake2sDigest<S> where
S: Eq + Size, impl<S> StructuralEq for Blake2sDigest<S> where
S: Size, impl<S> StructuralPartialEq for Blake2sDigest<S> where
S: Size, Auto Trait Implementations
impl<S> RefUnwindSafe for Blake2sDigest<S> where
<S as ArrayLength<u8>>::ArrayType: RefUnwindSafe, impl<S> Send for Blake2sDigest<S>impl<S> Sync for Blake2sDigest<S>impl<S> Unpin for Blake2sDigest<S> where
<S as ArrayLength<u8>>::ArrayType: Unpin, impl<S> UnwindSafe for Blake2sDigest<S> where
<S as ArrayLength<u8>>::ArrayType: UnwindSafe, Blanket Implementations
pub fn as_byte_slice(&self) -> &[u8]pub fn as_mut_byte_slice(&mut self) -> &mut [u8]pub fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error> where
T: FromByteSlice, pub fn as_slice_of<T>(&self) -> Result<&[T], Error> where
T: FromByteSlice, Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash, impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any, Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn protocol_name(&self) -> &[u8]
pub fn protocol_name(&self) -> &[u8]The protocol name as bytes. Transmitted on the network. Read more
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
pub fn vzip(self) -> VAttaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
impl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeDebug for T where
T: Debug,