macro_rules! kformat {
($($arg:tt)*) => { ... };
}
Expand description
A macro for formatting arguments into a KString
.
This macro is similar to Rust’s standard format!
macro but outputs a KString
instead of a String
. It uses the fmt::Write
trait internally to append formatted
text efficiently.
§Examples
let s: KString = kformat!("Hello, {}!", "world");
assert_eq!(s, "Hello, world!");