Struct calypso_base::ui::Emitters
source · Expand description
A helper struct containing the emitters for stdout and stderr.
Fields§
§out: Emitter
Emits to stdout
err: Emitter
Emits to stderr
Implementations§
source§impl Emitters
impl Emitters
sourcepub fn new(out_colors: ColorChoice, err_colors: ColorChoice) -> Self
pub fn new(out_colors: ColorChoice, err_colors: ColorChoice) -> Self
Create a new instance of this structure with the given preferences for
color output for each stream. These can be parsed from text using
parse_color_pref
.