| Crates.io | dyn-fmt |
| lib.rs | dyn-fmt |
| version | 0.4.3 |
| created_at | 2020-06-07 17:59:07.798724+00 |
| updated_at | 2024-09-08 19:00:25.027766+00 |
| description | Provides dynamic string format. |
| homepage | |
| repository | https://github.com/A1-Triard/dyn-fmt |
| max_upload_size | |
| id | 251048 |
| size | 29,107 |
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 | + | +/- | +/- |