[−][src]Macro format_xml::join
Displays the arguments joined with the given separator.
The arguments are moved instead of captured by reference unlike format_args!
.
let result = join!("--", 1, 2.0, true).to_string(); assert_eq!(result, "1--2--true");
Optionally, the formatting can be specified:
let result = join!("--", 10, 11, 12; "{:#x}").to_string(); assert_eq!(result, "0xa--0xb--0xc");