| Crates.io | lformat |
| lib.rs | lformat |
| version | 0.2.2 |
| created_at | 2025-05-01 19:50:22.485441+00 |
| updated_at | 2025-05-02 12:33:22.840954+00 |
| description | Clone of Lua `string.format` in Rust based on C `s(n)printf` |
| homepage | |
| repository | https://github.com/reloginn/lformat |
| max_upload_size | |
| id | 1656855 |
| size | 36,670 |
a clone of Lua string.format in Rust based on C sprintf
use lformat::format;
let s = format("%d + %d = %d\n", &[&3, &9, &(3+9)]).unwrap();
assert_eq!(s, "3 + 9 = 12\n");