macro_rules! wtf8_concat {
($($arg:expr),* $(,)?) => { ... };
}Expand description
Concatenate values into a Wtf8Buf, preserving surrogates.
Each argument must implement Wtf8Concat. String literals (&str),
Wtf8, Wtf8Buf, char, and CodePoint are all supported.
use rustpython_wtf8::Wtf8Buf;
let name = "world";
let result = rustpython_wtf8::wtf8_concat!("hello, ", name, "!");
assert_eq!(result, Wtf8Buf::from("hello, world!"));