pub fn capitalize(s: &str) -> String {
    let mut c = s.chars();
    match c.next() {
        None => String::new(),
        Some(f) => f.to_uppercase().collect::<String>() + c.as_str(),
    }
}
/// Capitalizes the first letter of a string.
Capitalizes the first letter of a string.
Capitalizes the first letter of a string .
pub fn capitalize(s: &str) -> String {
    let mut c = s.chars();
    match c.next() {
        None => String::new(),
        Some(f) => f.to_uppercase().collect::<String>() + c.as_str(),
    }
}
pub fn capitalize ( s : & str ) -> String { let mut c = s . chars ( ) ; match c . next ( ) { None => String :: new ( ) , Some ( f ) => f . to_uppercase ( ) . collect :: < String > ( ) + c . as_str ( ) , } }
Capitalizes the first letter of a string.
Capitalizes the first letter of a string .
s
&str
s
&str