fn word_signature(word: &str) -> String {
    let lowercase = word.to_lowercase();
    let mut chars: Vec<char> = lowercase.chars().collect();
    // sort the letters within the word, allowing all words containing the
    // same letters to have the same signature
    chars.sort_unstable();
    let chars = chars;
    String::from_iter(chars)
}
/// Common way to get the signature of a particular word.
Common way to get the signature of a particular word.
Common way to get the signature of a particular word .
fn word_signature(word: &str) -> String {
    let lowercase = word.to_lowercase();
    let mut chars: Vec<char> = lowercase.chars().collect();
    // sort the letters within the word, allowing all words containing the
    // same letters to have the same signature
    chars.sort_unstable();
    let chars = chars;
    String::from_iter(chars)
}
fn word_signature ( word : & str ) -> String { let lowercase = word . to_lowercase ( ) ; let mut chars : Vec < char > = lowercase . chars ( ) . collect ( ) ; // sort the letters within the word, allowing all words containing the // same letters to have the same signature chars . sort_unstable ( ) ; let chars = chars ; String :: from_iter ( chars ) }
Common way to get the signature of a particular word.
Common way to get the signature of a particular word .
word
&str