| Crates.io | string_concat |
| lib.rs | string_concat |
| version | 0.0.1 |
| created_at | 2020-05-19 16:30:25.709467+00 |
| updated_at | 2020-05-19 16:50:39.787994+00 |
| description | A useful macro for concatenating strings in low overhead manner |
| homepage | |
| repository | https://github.com/richardanaya/string_concat |
| max_upload_size | |
| id | 243506 |
| size | 15,029 |
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
}