macro_rules! concat { ($($e:expr),* $(,)?) => { ... }; }
Expand description
Concatenate const
&str
expressions and literals into a static
string slice.
This macro takes any number of comma-separated literals or constant
expressions and yields an expression of type &'static str
which
represents all of the literals and expressions concatenated left-to-right.
Integer, floating point, and boolean literals are stringified in order to be
concatenated. Finally, each expression is converted to a byte slice and
concatenated using concat_slices!
.
See the crate documentation for examples.