Provides dynamic string format.
use dyn_fmt::AsStrFormatExt;
fn main() {
assert_eq!("{}a{}b{}c".format(&[1, 2, 3]), "1a2b3c");
assert_eq!("{}a{}b{}c".format(&[1, 2, 3, 4]), "1a2b3c");
assert_eq!("{}a{}b{}c".format(&[1, 2]), "1a2bc");
assert_eq!("{{}}{}".format(&[1, 2]), "{}1");
}
dyn-fmt | strfmt | dynfmt | |
---|---|---|---|
no_std | + | - | - |
Easy but powerfull API that you enjoy using | + | +/- | - |
Nice license | + | +/- | +/- |