lformat

Crates.iolformat
lib.rslformat
version0.2.2
created_at2025-05-01 19:50:22.485441+00
updated_at2025-05-02 12:33:22.840954+00
descriptionClone of Lua `string.format` in Rust based on C `s(n)printf`
homepage
repositoryhttps://github.com/reloginn/lformat
max_upload_size
id1656855
size36,670
(reloginn)

documentation

README

lformat

a clone of Lua string.format in Rust based on C sprintf

Example

use lformat::format;
let s = format("%d + %d = %d\n", &[&3, &9, &(3+9)]).unwrap();
assert_eq!(s, "3 + 9 = 12\n");
Commit count: 74

cargo fmt