pub fn insert(&mut self, word: impl IntoIterator<Item = K>) {
        let mut node = self;
        node.count += 1;

        for ch in word {
            node = { node }.branches.entry(ch).or_default();
            node.count += 1;
        }
    }
/// Inserts a word into the trie.
Inserts a word into the trie.
Inserts a word into the trie .
pub fn insert(&mut self, word: impl IntoIterator<Item = K>) {
        let mut node = self;
        node.count += 1;
        for ch in word {
            node = { node }.branches.entry(ch).or_default();
            node.count += 1;
        }
    }
pub fn insert ( & mut self , word : impl IntoIterator < Item = K > ) { let mut node = self ; node . count += 1 ; for ch in word { node = { node } . branches . entry ( ch ) . or_default ( ) ; node . count += 1 ; } }
Inserts a word into the trie.
Inserts a word into the trie .
&mut self
word
impl IntoIterator<Item = K>