2 releases
0.0.1 | May 19, 2020 |
---|---|
0.0.0 | May 19, 2020 |
#13 in #manner
3,279 downloads per month
Used in 14 crates
(5 directly)
6KB
52 lines
string_concat!
A useful macro for putting together strings in a low overhead manner for no_std
+ alloc
apps.
let name = "Richard";
let msg:String = string_concat!("Hello ",name,"!");
saves you from typing
let name = "Richard";
let msg:String = {
let temp_string = String::new();
temp_string.push_str("Hello");
temp_string.push_str(name);
temp_string.push_str("!");
temp_string
}
Contributors
- @richardanaya
- @RustyYato