Skip to main content

initials

Function initials 

Source
pub fn initials(display_name: &str, username: &str) -> String
Expand description

Up to two initials for the avatar: first letters of the first and last word of the display name (the username when the name is empty).