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§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.
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 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 more