fn trim_whitespace(list: &[String]) -> Vec<String> {
    list.iter()
        .map(|w| w.trim_start().trim_end().to_string())
        .collect()
}
/// Iterates through list of `String`s, removing leading
/// and trailing whitespace from each `String`.
Iterates through list of `String`s, removing leading
and trailing whitespace from each `String`.
Iterates through list of ` String ` s removing leading and trailing whitespace from each ` String ` .
fn trim_whitespace(list: &[String]) -> Vec<String> {
    list.iter()
        .map(|w| w.trim_start().trim_end().to_string())
        .collect()
}
fn trim_whitespace ( list : & [ String ] ) -> Vec < String > { list . iter ( ) . map ( | w | w . trim_start ( ) . trim_end ( ) . to_string ( ) ) . collect ( ) }
Iterates through list of `String`s, removing leading
and trailing whitespace from each `String`.
Iterates through list of ` String ` s removing leading and trailing whitespace from each ` String ` .
list
&[String]
list
&[String]