Skip to main content

center_string

Function center_string 

Source
pub fn center_string(s: &str, w: usize) -> String
Expand description

s padded with spaces to width w, the extra space on the right; w counts bytes.