Heavier formatter that allows the possibility of
custom styles in strings. That is the only reason
this struct exists, if you don't need custom things
just use the
colorize_string() function provided
in the module.
Create a new formatter with no custom styles defined
Tell the formatter that you want a new style and what colors that style equates to so it knows what to replace it with when formatting
use paris::formatter::Formatter; let mut fmt = Formatter::new(); fmt.new_style("lol", vec!["green", "bold", "on_blue"]); // '<lol>' is now a key that can be used in strings
Finds all keys in the given input. Keys meaning
whatever the logger uses. Something that looks like
And replaces all those keys with their color, style
or icon equivalent.
impl RefUnwindSafe for Formatter
impl UnwindSafe for Formatter
type Error = Infallible
The type returned in the event of a conversion error.