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
sourceimpl<H: AsRef<[u8]> + Copy> ValueOwned<H>
impl<H: AsRef<[u8]> + Copy> ValueOwned<H>
Trait Implementations
sourceimpl<H: Clone> Clone for ValueOwned<H>
impl<H: Clone> Clone for ValueOwned<H>
sourcefn clone(&self) -> ValueOwned<H>
fn clone(&self) -> ValueOwned<H>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<H: Debug> Debug for ValueOwned<H>
impl<H: Debug> Debug for ValueOwned<H>
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<H: PartialEq> PartialEq<ValueOwned<H>> for ValueOwned<H>
impl<H: PartialEq> PartialEq<ValueOwned<H>> for ValueOwned<H>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ValueOwned<H>) -> bool
fn ne(&self, other: &ValueOwned<H>) -> bool
This method tests for !=
.
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
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