fn normalize(word: &str) -> (String, Vec<char>) {
    let word_lower = word.to_lowercase();
    let mut word_norm: Vec<char> = word_lower.chars().collect();
    word_norm.sort_unstable();
    (word_lower, word_norm)
}
/// To normalize a word is to first turn it into lowercase and then sort it by char.
/// Both lowered string and sorted vector are returned.
To normalize a word is to first turn it into lowercase and then sort it by char.
Both lowered string and sorted vector are returned.
To normalize a word is to first turn it into lowercase and then sort it by char . Both lowered string and sorted vector are returned .
fn normalize(word: &str) -> (String, Vec<char>) {
    let word_lower = word.to_lowercase();
    let mut word_norm: Vec<char> = word_lower.chars().collect();
    word_norm.sort_unstable();
    (word_lower, word_norm)
}
fn normalize ( word : & str ) -> ( String , Vec < char > ) { let word_lower = word . to_lowercase ( ) ; let mut word_norm : Vec < char > = word_lower . chars ( ) . collect ( ) ; word_norm . sort_unstable ( ) ; ( word_lower , word_norm ) }
To normalize a word is to first turn it into lowercase and then sort it by char.
To normalize a word is to first turn it into lowercase and then sort it by char .
word
&str
word
&str