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 ==
.impl<H: Eq> Eq for ValueOwned<H>
impl<H> StructuralEq for ValueOwned<H>
impl<H> StructuralPartialEq for ValueOwned<H>
Auto Trait Implementations§
impl<H> RefUnwindSafe for ValueOwned<H>where H: RefUnwindSafe,
impl<H> Send for ValueOwned<H>where H: Send,
impl<H> Sync for ValueOwned<H>where H: Sync,
impl<H> Unpin for ValueOwned<H>where H: Unpin,
impl<H> UnwindSafe for ValueOwned<H>where H: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more