pub struct TrieEntry { /* private fields */ }Expand description
Represents the full Trie entry in the HWDB.
Implementations§
Source§impl TrieEntry
impl TrieEntry
Sourcepub fn children(&self) -> &[TrieChildEntry]
pub fn children(&self) -> &[TrieChildEntry]
Gets a reference to the list of TrieChildEntry.
Sourcepub fn values(&self) -> &[TrieValueEntry]
pub fn values(&self) -> &[TrieValueEntry]
Gets a reference to the list of TrieValueEntry.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Gets whether the TrieValueEntry has no children and values.
Sourcepub fn lookup_child(&self, hwdb_buf: &[u8], c: u8) -> Option<Self>
pub fn lookup_child(&self, hwdb_buf: &[u8], c: u8) -> Option<Self>
Looks up a child node in the HWDB buffer.
Parameters:
hwdb_buf: in-memory buffer of the entire HWDB.c: Child index to search the list of TrieChildEntry.
Returns Some(TrieNode) on success, None otherwise.
Trait Implementations§
impl StructuralPartialEq for TrieEntry
Auto Trait Implementations§
impl Freeze for TrieEntry
impl RefUnwindSafe for TrieEntry
impl Send for TrieEntry
impl Sync for TrieEntry
impl Unpin for TrieEntry
impl UnwindSafe for TrieEntry
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