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