A simple library to left pad a string with a given character up to a certain length.
use pad_left::left_pad;
fn main() {
assert_eq!(left_pad("hello".to_string(), 15, '🚀'), "🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀hello".to_string());
}cargo testcargo doc --open| Name | Name | Last commit date | ||
|---|---|---|---|---|