expression-formatter 0.1.0

Insert complex expressions directly into format strings.
Documentation
1
2
3
4
5
6
7
use expression_formatter::format;

#[test]
fn test() {
    let value = format!("expressions: {1 + 2} and {3 + 4} wow!");
    println!("{}", value);
}