Skip to main content

arcfmt

Macro arcfmt 

Source
macro_rules! arcfmt {
    ($($tt:tt)*) => { ... };
}
Expand description

Conceptually equivalent to ArcStr::new(format!("...", args...)).

If all your arguments are string literals / const strings, consider using the arc!() macro instead.

ยงExamples

let foobar = fastring::arcfmt!("testing {}", "foobar");

assert_eq!(foobar, "testing foobar");