Macro i_slint_core::format
source · 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"));