pub trait Fmt: Sized {
    fn fg<C: Into<Option<Color>>>(self, color: C) -> Foreground<Self> { ... }
fn bg<C: Into<Option<Color>>>(self, color: C) -> Background<Self> { ... } }
Expand description

A trait used to add formatting attributes to displayable items.

Attributes specified through this trait are not composable (i.e: the behaviour of two nested attributes each with a conflicting attribute is left unspecified).

Provided methods

Give this value the specified foreground colour

Give this value the specified background colour

Implementors