Skip to main content

rtr

Macro rtr 

Source
macro_rules! rtr {
    ($($x:expr)?, $($arg:tt)*) => { ... };
}
Expand description

Same as rtr but will format the text.
Will translate the first argument and then format with the others.

ยงExample

#[macro_use]
extern crate rtr;
use rtr::*;

init("fr");

assert_eq!(rtr!("hello {} {}", "cruel".to_string(), "monde".to_string()), String::from("salut cruel monde"));