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
sourceimpl Clone for ChildTrieParentKeyId
impl Clone for ChildTrieParentKeyId
sourcefn clone(&self) -> ChildTrieParentKeyId
fn clone(&self) -> ChildTrieParentKeyId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChildTrieParentKeyId
impl Debug for ChildTrieParentKeyId
sourceimpl Hash for ChildTrieParentKeyId
impl Hash for ChildTrieParentKeyId
sourceimpl Ord for ChildTrieParentKeyId
impl Ord for ChildTrieParentKeyId
sourceimpl PartialEq<ChildTrieParentKeyId> for ChildTrieParentKeyId
impl PartialEq<ChildTrieParentKeyId> for ChildTrieParentKeyId
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ChildTrieParentKeyId) -> bool
fn ne(&self, other: &ChildTrieParentKeyId) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ChildTrieParentKeyId> for ChildTrieParentKeyId
impl PartialOrd<ChildTrieParentKeyId> for ChildTrieParentKeyId
sourcefn partial_cmp(&self, other: &ChildTrieParentKeyId) -> Option<Ordering>
fn partial_cmp(&self, other: &ChildTrieParentKeyId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more