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.