Enum trie_db::node::ValueOwned
source · pub enum ValueOwned<H> {
Inline(Bytes, H),
Node(H),
}
Expand description
Owned value representation in Node
.
Variants§
Inline(Bytes, H)
Value bytes as stored in a trie node and its hash.
Node(H)
Hash byte slice as stored in a trie node.
Implementations§
Trait Implementations§
source§impl<H: Clone> Clone for ValueOwned<H>
impl<H: Clone> Clone for ValueOwned<H>
source§fn clone(&self) -> ValueOwned<H>
fn clone(&self) -> ValueOwned<H>
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<H: Debug> Debug for ValueOwned<H>
impl<H: Debug> Debug for ValueOwned<H>
source§impl<L: TrieLayout> From<&ValueOwned<<<L as TrieLayout>::Hash as Hasher>::Out>> for Value<L>
impl<L: TrieLayout> From<&ValueOwned<<<L as TrieLayout>::Hash as Hasher>::Out>> for Value<L>
source§fn from(val: &ValueOwned<TrieHash<L>>) -> Self
fn from(val: &ValueOwned<TrieHash<L>>) -> Self
Converts to this type from the input type.
source§impl<H: PartialEq> PartialEq<ValueOwned<H>> for ValueOwned<H>
impl<H: PartialEq> PartialEq<ValueOwned<H>> for ValueOwned<H>
source§fn eq(&self, other: &ValueOwned<H>) -> bool
fn eq(&self, other: &ValueOwned<H>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.