pub struct TrieNode { /* private fields */ }Expand description
Trie node in the hardware database.
Implementations§
Source§impl TrieNode
impl TrieNode
Sourcepub const fn prefix_off(&self) -> u64
pub const fn prefix_off(&self) -> u64
Gets the prefix of the lookup string, shared by all children.
Sourcepub fn set_prefix_off(&mut self, val: u64)
pub fn set_prefix_off(&mut self, val: u64)
Sets the prefix of the lookup string, shared by all children.
Sourcepub fn with_prefix_off(self, val: u64) -> Self
pub fn with_prefix_off(self, val: u64) -> Self
Builder function that sets the prefix of the lookup string, shared by all children.
Sourcepub const fn children_count(&self) -> u8
pub const fn children_count(&self) -> u8
Gets the size of children entry array appended to the node.
Sourcepub fn set_children_count(&mut self, val: u8)
pub fn set_children_count(&mut self, val: u8)
Sets the size of children entry array appended to the node.
Sourcepub fn with_children_count(self, val: u8) -> Self
pub fn with_children_count(self, val: u8) -> Self
Builder function that sets the size of children entry array appended to the node.
Sourcepub const fn values_count(&self) -> u64
pub const fn values_count(&self) -> u64
Gets the size of value entry array appended to the node.
Sourcepub fn set_values_count(&mut self, val: u64)
pub fn set_values_count(&mut self, val: u64)
Sets the size of value entry array appended to the node.
Sourcepub fn with_values_count(self, val: u64) -> Self
pub fn with_values_count(self, val: u64) -> Self
Builder function that sets the size of value entry array appended to the node.
Trait Implementations§
impl Copy for TrieNode
impl StructuralPartialEq for TrieNode
Auto Trait Implementations§
impl Freeze for TrieNode
impl RefUnwindSafe for TrieNode
impl Send for TrieNode
impl Sync for TrieNode
impl Unpin for TrieNode
impl UnwindSafe for TrieNode
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