Skip to main content

initials

Function initials 

Source
pub fn initials(name: &str) -> String
Available on crate feature avatar only.
Expand description

Up to two initials for a name: the first letters of its first and last words, in upper case. One word gives one letter, and an empty name none.