Content-Length: 6624 | pFad | https://doc.rust-lang.org/reference/../std/../std/vec/../../../std/macro.concat.html

concat in std - Rust

concat

Macro concat 

1.38.0 · Source
macro_rules! concat {
    ($($e:expr),* $(,)?) => { ... };
}
Expand description

Concatenates literals into a static string slice.

This macro takes any number of comma-separated literals, yielding an expression of type &'static str which represents all of the literals concatenated left-to-right.

Integer and floating point literals are stringified in order to be concatenated.

§Examples

let s = concat!("test", 10, 'b', true);
assert_eq!(s, "test10btrue");








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/reference/../std/../std/vec/../../../std/macro.concat.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy