fn pad_left(len: usize, s: &str) -> String {
    let mut output = String::new();
    let s_len = s.len();
    if s_len < len {
        let pad_len = len - s_len;
        for _ in 0..pad_len {
            output.push(' ');
        }
    }
    output.push_str(s);

    output
}
/// Pad a string to the given length.
Pad a string to the given length.
Pad a string to the given length .
fn pad_left(len: usize, s: &str) -> String {
    let mut output = String::new();
    let s_len = s.len();
    if s_len < len {
        let pad_len = len - s_len;
        for _ in 0..pad_len {
            output.push(' ');
        }
    }
    output.push_str(s);
    output
}
fn pad_left ( len : usize , s : & str ) -> String { let mut output = String :: new ( ) ; let s_len = s . len ( ) ; if s_len < len { let pad_len = len - s_len ; for _ in 0 .. pad_len { output . push ( ' ' ) ; } } output . push_str ( s ) ; output }
Pad a string to the given length.
Pad a string to the given length .
len
usize
s
&str