[][src]Macro string_format::string_format

macro_rules! string_format {
    ($($arg:expr),*) => { ... };
}

work like the format! macro but with a String

Example

use string_format::*;
 
let hello = String::from("hello {} {}");
let cruel = String::from("cruel");
let world = String::from("world");
assert_eq!("hello cruel world".to_string(), string_format!(hello, cruel, world));