pub struct TrieValueEntry { /* private fields */ }Expand description
Trie value entry in the hardware database.
Array of value entries that directly follows the node record.
Implementations§
Source§impl TrieValueEntry
impl TrieValueEntry
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new TrieValueEntry.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Gets the length of the encoded TrieValueEntry.
Sourcepub const fn is_empty(&self) -> bool
pub const fn is_empty(&self) -> bool
Gets whether the TrieValueEntry is empty.
Sourcepub fn set_key_off(&mut self, val: u64)
pub fn set_key_off(&mut self, val: u64)
Sets key offset.
Sourcepub fn with_key_off(self, val: u64) -> Self
pub fn with_key_off(self, val: u64) -> Self
Builder function that sets the key offset.
Sourcepub fn set_value_off(&mut self, val: u64)
pub fn set_value_off(&mut self, val: u64)
Sets value offset.
Sourcepub fn with_value_off(self, val: u64) -> Self
pub fn with_value_off(self, val: u64) -> Self
Builder function that sets the value offset.
Trait Implementations§
Source§impl Clone for TrieValueEntry
impl Clone for TrieValueEntry
Source§fn clone(&self) -> TrieValueEntry
fn clone(&self) -> TrieValueEntry
Returns a duplicate 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 Debug for TrieValueEntry
impl Debug for TrieValueEntry
Source§impl Default for TrieValueEntry
impl Default for TrieValueEntry
Source§fn default() -> TrieValueEntry
fn default() -> TrieValueEntry
Returns the “default value” for a type. Read more
Source§impl PartialEq for TrieValueEntry
impl PartialEq for TrieValueEntry
Source§impl TryFrom<&[u8]> for TrieValueEntry
impl TryFrom<&[u8]> for TrieValueEntry
impl Copy for TrieValueEntry
impl StructuralPartialEq for TrieValueEntry
Auto Trait Implementations§
impl Freeze for TrieValueEntry
impl RefUnwindSafe for TrieValueEntry
impl Send for TrieValueEntry
impl Sync for TrieValueEntry
impl Unpin for TrieValueEntry
impl UnwindSafe for TrieValueEntry
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