macro_rules! format { ($($arg:tt)*) => { ... }; }
Expand description
This macro is the same as std::format!
, but it returns a SharedString
instead.
ยงExample
let s : slint::SharedString = slint::format!("Hello {}", "world");
assert_eq!(s, slint::SharedString::from("Hello world"));