Function left_pad

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

pad a string to the left to pad length with spaces If str.len() is less than pad, then the string is returned verbatim