13 releases
0.4.3 | Sep 8, 2024 |
---|---|
0.4.2 | Sep 8, 2024 |
0.4.0 | Aug 22, 2023 |
0.3.0 | Sep 15, 2020 |
0.1.2 | Jun 12, 2020 |
#29 in Value formatting
10,085 downloads per month
Used in 12 crates
(9 directly)
16KB
238 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 | + | +/- | +/- |
Dependencies
~175KB