#[repr(transparent)]pub struct WorkPackageHash(pub [u8; 32]);Expand description
Hash of an encoded Work Package.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl AsMut<[u8]> for WorkPackageHash
impl AsMut<[u8]> for WorkPackageHash
Source§impl Clone for WorkPackageHash
impl Clone for WorkPackageHash
Source§fn clone(&self) -> WorkPackageHash
fn clone(&self) -> WorkPackageHash
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkPackageHash
impl Debug for WorkPackageHash
Source§impl Decode for WorkPackageHash
impl Decode for WorkPackageHash
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
dst_: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>
fn decode_into<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, dst_: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Default for WorkPackageHash
impl Default for WorkPackageHash
Source§impl Deref for WorkPackageHash
impl Deref for WorkPackageHash
Source§impl DerefMut for WorkPackageHash
impl DerefMut for WorkPackageHash
Source§impl Display for WorkPackageHash
impl Display for WorkPackageHash
Source§impl Encode for WorkPackageHash
impl Encode for WorkPackageHash
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>( &self, f: __CodecUsingEncodedCallback, ) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<WorkPackageHash> for RootIdentifier
impl From<WorkPackageHash> for RootIdentifier
Source§fn from(hash: WorkPackageHash) -> Self
fn from(hash: WorkPackageHash) -> Self
Converts to this type from the input type.
Source§impl Hash for WorkPackageHash
impl Hash for WorkPackageHash
Source§impl MaxEncodedLen for WorkPackageHash
impl MaxEncodedLen for WorkPackageHash
Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
Source§impl Ord for WorkPackageHash
impl Ord for WorkPackageHash
Source§fn cmp(&self, other: &WorkPackageHash) -> Ordering
fn cmp(&self, other: &WorkPackageHash) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WorkPackageHash
impl PartialEq for WorkPackageHash
Source§impl PartialOrd for WorkPackageHash
impl PartialOrd for WorkPackageHash
impl ConstEncodedLen for WorkPackageHash
impl Copy for WorkPackageHash
impl EncodeLike for WorkPackageHash
impl Eq for WorkPackageHash
impl StructuralPartialEq for WorkPackageHash
Auto Trait Implementations§
impl Freeze for WorkPackageHash
impl RefUnwindSafe for WorkPackageHash
impl Send for WorkPackageHash
impl Sync for WorkPackageHash
impl Unpin for WorkPackageHash
impl UnwindSafe for WorkPackageHash
Blanket Implementations§
Source§impl<T, U> AsMutByteSlice<T> for U
impl<T, U> AsMutByteSlice<T> for U
fn as_mut_byte_slice(&mut self) -> &mut [u8] ⓘ
Source§impl<U> AsMutSliceOf for U
impl<U> AsMutSliceOf for U
fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>where
T: FromByteSlice,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more