Skip to main content

pad

Function pad 

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

Truncates text to width terminal columns and pads it with spaces to exactly that width (format!("{:<N}") counts characters, not columns).