Expand description
Value representation in Node
.
Variants
Inline(&'a [u8])
Value byte slice as stored in a trie node.
Node(&'a [u8])
Hash byte slice as stored in a trie node.
Implementations
sourceimpl<'a> Value<'a>
impl<'a> Value<'a>
pub fn to_owned_value<L: TrieLayout>(&self) -> ValueOwned<TrieHash<L>>
Trait Implementations
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.
impl<'a> Eq for Value<'a>
impl<'a> StructuralEq for Value<'a>
impl<'a> StructuralPartialEq for Value<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
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