fn add_word(&mut self, word: String) {
        let mut curr = &mut self.root;
        for c in word.bytes() {
            curr = moving(curr).keys.entry(c).or_insert(Box::new(Word::new()));
        }
        curr.is_end = true;
    }
/** Adds a word into the data structure. */
Adds a word into the data structure.
Adds a word into the data structure .
fn add_word(&mut self, word: String) {
        let mut curr = &mut self.root;
        for c in word.bytes() {
            curr = moving(curr).keys.entry(c).or_insert(Box::new(Word::new()));
        }
        curr.is_end = true;
    }
fn add_word ( & mut self , word : String ) { let mut curr = & mut self . root ; for c in word . bytes ( ) { curr = moving ( curr ) . keys . entry ( c ) . or_insert ( Box :: new ( Word :: new ( ) ) ) ; } curr . is_end = true ; }
Adds a word into the data structure.
Adds a word into the data structure .
&mut self
word
String