pub enum Value<L: TrieLayout> {
Inline(DBValue),
Node(TrieHash<L>, Option<DBValue>),
NewNode(Option<TrieHash<L>>, DBValue),
}
Expand description
Value representation for Node.
Variants
Inline(DBValue)
Value bytes inlined in a trie node.
Node(TrieHash<L>, Option<DBValue>)
Hash of value bytes and value bytes when accessed.
NewNode(Option<TrieHash<L>>, DBValue)
Hash of value bytes if calculated and value bytes. The hash may be undefined until it node is added to the db.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<L> RefUnwindSafe for Value<L> where
<<L as TrieLayout>::Hash as Hasher>::Out: RefUnwindSafe,
impl<L> UnwindSafe for Value<L> where
<<L as TrieLayout>::Hash as Hasher>::Out: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more