pub struct TrieNode {
pub is_end_of_word: bool,
pub children: HashMap<char, TrieNode>,
}
Expand description
A single node in the Trie.
Each node represents a character and may have child nodes or mark the end of a word.
Fields§
§is_end_of_word: bool
Indicates if this node marks the end of a word.
children: HashMap<char, TrieNode>
Children nodes mapped by characters.
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