pub struct TrieNode { /* private fields */ }
Expand description
A node in a Trie data structure.
Each node stores a map of child nodes (children
) indexed by characters,
and a boolean flag (is_end_of_word
) indicating whether the node represents the end of a valid word.
Implementations§
Trait Implementations§
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