pub enum Value<'a> {
Inline(&'a [u8]),
Node(&'a [u8]),
}
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§
source§impl<'a> Value<'a>
impl<'a> Value<'a>
pub fn to_owned_value<L: TrieLayout>(&self) -> ValueOwned<TrieHash<L>>
Trait Implementations§
source§impl<'a, L: TrieLayout> From<Value<'a>> for Value<L>
impl<'a, L: TrieLayout> From<Value<'a>> for Value<L>
source§fn from(v: EncodedValue<'a>) -> Self
fn from(v: EncodedValue<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq for Value<'a>
impl<'a> PartialEq for Value<'a>
impl<'a> Eq for Value<'a>
impl<'a> StructuralPartialEq for Value<'a>
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)