Skip to main content

pad_to_width

Function pad_to_width 

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

Pad (or truncate) a string to a given visible width.