Skip to main content

pad_to_width

Function pad_to_width 

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

Right-pad s with spaces so its visible width equals width.

ANSI escape sequences are ignored when measuring width.