[][src]Trait owo_colors::DynColor

pub trait DynColor {
    fn fmt_ansi_fg(&self, f: &mut Formatter<'_>) -> Result;
fn fmt_ansi_bg(&self, f: &mut Formatter<'_>) -> Result; }

A trait describing a runtime-configurable color which can displayed using FgDynColorDisplay or BgDynColorDisplay. If your color will be known at compile time it is recommended you avoid this.

Required methods

fn fmt_ansi_fg(&self, f: &mut Formatter<'_>) -> Result[src]

fn fmt_ansi_bg(&self, f: &mut Formatter<'_>) -> Result[src]

Loading content...

Implementors

impl DynColor for AnsiColors[src]

impl DynColor for DynColors[src]

impl DynColor for XtermColors[src]

impl DynColor for Rgb[src]

impl DynColor for str[src]

Loading content...