Macro concat

Source
macro_rules! concat {
    ( $x0:expr, $($xs:expr),+ ) => { ... };
}
Expand description

Concatenate all given strings and return a new TokenString.

Warning: if passing a big number of strings to concatenate, this macro may fail, as it uses recursion to compute the number of arguments.

Memory:

With N being the number of strings to concatenate, the Builder used internally uses a static array of N pointers to TokenStrings and two 8 byte fields, so (N + 2) * 8 bytes, (N + 2) * 64 bits.

ยงErrors

This function will return TkStrError::TooBig if the concatenated string is greater than MAX_LENGTH.