Skip to main content

pad_to

Function pad_to 

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

Right-pads s with spaces so its visible width equals width. If the visible length already meets or exceeds width, returns s unchanged.