Enum embedded_text::ChangeTextStyle [−][src]
pub enum ChangeTextStyle<C> where
C: PixelColor, { Reset, TextColor(Option<C>), BackgroundColor(Option<C>), Underline(DecorationColor<C>), Strikethrough(DecorationColor<C>), }
Expand description
Change text style.
Variants
Reset text style. Disables decoration, removes background color and sets a default text color.
TextColor(Option<C>)Change text color. None means transparent.
BackgroundColor(Option<C>)Change background color. None means transparent.
Underline(DecorationColor<C>)Change color of underlining.
Strikethrough(DecorationColor<C>)Change color of strikethrough decoration.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<C> RefUnwindSafe for ChangeTextStyle<C> where
C: RefUnwindSafe, impl<C> Send for ChangeTextStyle<C> where
C: Send, impl<C> Sync for ChangeTextStyle<C> where
C: Sync, impl<C> Unpin for ChangeTextStyle<C> where
C: Unpin, impl<C> UnwindSafe for ChangeTextStyle<C> where
C: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
type Output = T
type Output = TShould always be Self
Casts the value.
Casts the value.
Casts the value.