macro_rules! tstring_concat {
    [$($elem:expr,)*] => { ... };
    [$($elem:expr),+] => { ... };
}
Expand description

Concatenates various TermString or TermString-like into a new TermString. It takes everything by reference, and it is possible to mix types.

Example

use andiskaz::{tstring, tstring_concat};
use andiskaz::string::{TermGrapheme, TermString};

let tomatoes = tstring!["Totatoes"];
let space = TermGrapheme::space();
let are = tstring!["are"];
let good = tstring!["good"];

let together: TermString = tstring_concat![tomatoes, space, are, space, good];

assert_eq!(together, TermString::new("Totatoes are good").unwrap());
assert_eq!(together.as_str(), "Totatoes are good");