Function leftpad::left_pad_char [] [src]

pub fn left_pad_char(s: &str, pad: usize, padchar: char) -> String

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