Macro constcat::concat

source ·
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 is the result of all of the literals and expressions concatenated left-to-right. Literals are first converted using std::concat!. Finally, each expression is converted to a byte slice and concatenated using concat_slices!.

See the crate documentation for examples.