s-macro 0.1.0

A basic Rust library for conveniently making a String.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# `s-macro`

A basic Rust library for conveniently making a `String`. Like so:

```rust
use s_macro::s;

assert!(s!()                   == String::new());
assert!(s!("hello, world")     == String::from("hello, world"));
assert!(s!(123 + 321)          == format!("{}", 123 + 321));

let world = "world";
assert!(s!("hello, {}", world) == format!("hello, {}", world));
assert!(s!("hello, {world}")   == format!("hello, {world}"));
```