Struct sc_network::multiaddr::multihash::Sha3Digest [−]
pub struct Sha3Digest<S>(_)
where
S: Size;
Expand description
Multihash digest.
Trait Implementations
impl<S> Clone for Sha3Digest<S> where
S: Clone + Size,
impl<S> Clone for Sha3Digest<S> where
S: Clone + Size,
pub fn clone(&self) -> Sha3Digest<S>
pub fn clone(&self) -> Sha3Digest<S>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<S> Debug for Sha3Digest<S> where
S: Debug + Size,
impl<S> Debug for Sha3Digest<S> where
S: Debug + Size,
impl<S> Default for Sha3Digest<S> where
S: Default + Size,
impl<S> Default for Sha3Digest<S> where
S: Default + Size,
pub fn default() -> Sha3Digest<S>
pub fn default() -> Sha3Digest<S>
Returns the “default value” for a type. Read more
impl<S> Digest<S> for Sha3Digest<S> where
S: Size,
impl<S> Digest<S> for Sha3Digest<S> where
S: Size,
impl<S> From<GenericArray<u8, S>> for Sha3Digest<S> where
S: Size,
impl<S> From<GenericArray<u8, S>> for Sha3Digest<S> where
S: Size,
pub fn from(array: GenericArray<u8, S>) -> Sha3Digest<S>
pub fn from(array: GenericArray<u8, S>) -> Sha3Digest<S>
Performs the conversion.
impl<S> Hash for Sha3Digest<S> where
S: Hash + Size,
impl<S> Hash for Sha3Digest<S> where
S: Hash + Size,
impl<S> PartialEq<Sha3Digest<S>> for Sha3Digest<S> where
S: PartialEq<S> + Size,
impl<S> PartialEq<Sha3Digest<S>> for Sha3Digest<S> where
S: PartialEq<S> + Size,
pub fn eq(&self, other: &Sha3Digest<S>) -> bool
pub fn eq(&self, other: &Sha3Digest<S>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &Sha3Digest<S>) -> bool
pub fn ne(&self, other: &Sha3Digest<S>) -> bool
This 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 Sha3Digest<S> where
S: Size,
<S as ArrayLength<u8>>::ArrayType: Copy,
impl<S> Eq for Sha3Digest<S> where
S: Eq + Size,
impl<S> StructuralEq for Sha3Digest<S> where
S: Size,
impl<S> StructuralPartialEq for Sha3Digest<S> where
S: Size,
Auto Trait Implementations
impl<S> RefUnwindSafe for Sha3Digest<S> where
<S as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<S> Send for Sha3Digest<S>
impl<S> Sync for Sha3Digest<S>
impl<S> Unpin for Sha3Digest<S> where
<S as ArrayLength<u8>>::ArrayType: Unpin,
impl<S> UnwindSafe for Sha3Digest<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) -> V
Attaches 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,