macro_rules! format {
($($arg:tt)*) => { ... };
}
Available on crate features
alloc
and macros
only.Expand description
Create a String
by discarding styling attributes.
assert_eq!(
stylish::plain::format!("Hello {:(fg=red)}", "Ferris"),
"Hello Ferris",
);