leftpad-rs
This crate provides generic left-padding functions for strings, including both &str
and String
.
Import with extern crate left_pad;
.
Link to the documentation
Usage example:
use ;
assert_eq!;
assert_eq!;
let s: String = "blubb".to_owned;
assert_eq!;