Function format

Source
pub fn format(args: Arguments<'_>) -> String
Available on crate feature alloc only.
Expand description

Render the given attributed Arguments into a String by discarding the style attributes.

assert_eq!(
    stylish::plain::format(stylish::format_args!(
        "Hello {:(fg=red)}",
        "Ferris"
    )),
    "Hello Ferris",
);