pub trait StorageTrieEntryLike: Sized {
type SubKey: Clone;
// Required methods
fn nibbles(&self) -> &Self::SubKey;
fn node(&self) -> &BranchNodeCompact;
fn into_parts(self) -> (Self::SubKey, BranchNodeCompact);
fn new(nibbles: Self::SubKey, node: BranchNodeCompact) -> Self;
}Expand description
Trait for storage trie entry types that carry a subkey and node.
Provides access to the encoded subkey and branch node, as well as construction and decomposition into owned parts, independently of the subkey encoding.
Required Associated Types§
Required Methods§
Sourcefn into_parts(self) -> (Self::SubKey, BranchNodeCompact)
fn into_parts(self) -> (Self::SubKey, BranchNodeCompact)
Decompose this value into owned parts.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".