10 releases
0.4.0 | Aug 22, 2023 |
---|---|
0.3.0 | Sep 15, 2020 |
0.2.5 | Sep 9, 2020 |
0.2.3 | Aug 16, 2020 |
0.1.2 | Jun 12, 2020 |
#44 in Value formatting
11,036 downloads per month
Used in 8 crates
(6 directly)
15KB
234 lines
dyn-fmt
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");
}
Comparision
dyn-fmt | strfmt | dynfmt | |
---|---|---|---|
no_std | + | - | - |
Easy but powerfull API that you enjoy using | + | +/- | - |
Nice license | + | +/- | +/- |