I'm new to Rust and completely lost in the standard library. I do not want to add a crate just for padding. How do I pad left a number with zeroes up to a certain width?
Lets say I have this code and I need the pad_left implementation.
fn main() {
let i = 5.to_string();
let padded_i = pad_left(i, 2);
}