pub enum Value<L: TrieLayout> {
Inline(Bytes),
Node(TrieHash<L>),
NewNode(Option<TrieHash<L>>, Bytes),
}
Expand description
Value representation for Node.
Variants§
Inline(Bytes)
Value bytes inlined in a trie node.
Node(TrieHash<L>)
Hash of the value.
NewNode(Option<TrieHash<L>>, Bytes)
Hash of value bytes if calculated and value bytes. The hash may be undefined until it node is added to the db.
Trait Implementations§
source§impl<L: TrieLayout> Debug for Value<L>
impl<L: TrieLayout> Debug for Value<L>
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<'a, L: TrieLayout> From<Value<'a>> for Value<L>
impl<'a, L: TrieLayout> From<Value<'a>> for Value<L>
source§fn from(v: EncodedValue<'a>) -> Self
fn from(v: EncodedValue<'a>) -> Self
Converts to this type from the input type.