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
sourceimpl<L: Clone + TrieLayout> Clone for Value<L>
impl<L: Clone + TrieLayout> Clone for Value<L>
sourceimpl<L: TrieLayout> Debug for Value<L>
impl<L: TrieLayout> Debug for Value<L>
sourceimpl<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>
sourcefn from(val: &ValueOwned<TrieHash<L>>) -> Self
fn from(val: &ValueOwned<TrieHash<L>>) -> Self
Converts to this type from the input type.
sourceimpl<'a, L: TrieLayout> From<Value<'a>> for Value<L>
impl<'a, L: TrieLayout> From<Value<'a>> for Value<L>
sourcefn from(v: EncodedValue<'a>) -> Self
fn from(v: EncodedValue<'a>) -> Self
Converts to this type from the input type.
sourceimpl<L: TrieLayout> PartialEq<Value<L>> for Value<L>
impl<L: TrieLayout> PartialEq<Value<L>> for Value<L>
impl<L: Eq + TrieLayout> Eq for Value<L>
impl<L: TrieLayout> StructuralEq for Value<L>
Auto Trait Implementations
impl<L> RefUnwindSafe for Value<L> where
<<L as TrieLayout>::Hash as Hasher>::Out: RefUnwindSafe,
impl<L> Send for Value<L>
impl<L> Sync for Value<L>
impl<L> Unpin for Value<L> where
<<L as TrieLayout>::Hash as Hasher>::Out: Unpin,
impl<L> UnwindSafe for Value<L> where
<<L as TrieLayout>::Hash as Hasher>::Out: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more