Struct sp_storage::ChildTrieParentKeyId
source · pub struct ChildTrieParentKeyId { /* private fields */ }
Expand description
A child trie of default type.
It uses the same default implementation as the top trie, top trie being a child trie with no keyspace and no storage key. Its keyspace is the variable (unprefixed) part of its storage key. It shares its trie nodes backend storage with every other child trie, so its storage key needs to be a unique id that will be use only once. Those unique id also required to be long enough to avoid any unique id to be prefixed by an other unique id.
Trait Implementations§
source§impl Clone for ChildTrieParentKeyId
impl Clone for ChildTrieParentKeyId
source§fn clone(&self) -> ChildTrieParentKeyId
fn clone(&self) -> ChildTrieParentKeyId
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 ChildTrieParentKeyId
impl Debug for ChildTrieParentKeyId
source§impl Decode for ChildTrieParentKeyId
impl Decode for ChildTrieParentKeyId
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.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Encode for ChildTrieParentKeyId
impl Encode for ChildTrieParentKeyId
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<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl Hash for ChildTrieParentKeyId
impl Hash for ChildTrieParentKeyId
source§impl Ord for ChildTrieParentKeyId
impl Ord for ChildTrieParentKeyId
source§fn cmp(&self, other: &ChildTrieParentKeyId) -> Ordering
fn cmp(&self, other: &ChildTrieParentKeyId) -> 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<ChildTrieParentKeyId> for ChildTrieParentKeyId
impl PartialEq<ChildTrieParentKeyId> for ChildTrieParentKeyId
source§fn eq(&self, other: &ChildTrieParentKeyId) -> bool
fn eq(&self, other: &ChildTrieParentKeyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChildTrieParentKeyId> for ChildTrieParentKeyId
impl PartialOrd<ChildTrieParentKeyId> for ChildTrieParentKeyId
source§fn partial_cmp(&self, other: &ChildTrieParentKeyId) -> Option<Ordering>
fn partial_cmp(&self, other: &ChildTrieParentKeyId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl EncodeLike<ChildTrieParentKeyId> for ChildTrieParentKeyId
impl Eq for ChildTrieParentKeyId
impl StructuralEq for ChildTrieParentKeyId
impl StructuralPartialEq for ChildTrieParentKeyId
Auto Trait Implementations§
impl RefUnwindSafe for ChildTrieParentKeyId
impl Send for ChildTrieParentKeyId
impl Sync for ChildTrieParentKeyId
impl Unpin for ChildTrieParentKeyId
impl UnwindSafe for ChildTrieParentKeyId
Blanket Implementations§
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more