format_error

Macro format_error 

Source
macro_rules! format_error {
    ($theme:expr, $($arg:tt)*) => { ... };
}
Expand description

Macro to format an error message with theme’s error style.

§Examples

let msg = format_error!(theme, "Invalid value");
let msg = format_error!(theme, "Invalid value: {}", 42);