pub enum Style {
Reset,
Bold,
Underline,
Italic,
Fg(Color),
Bg(Color),
}Expand description
All valid style markers
Defines the range of possible styles
Variants§
Reset
Reset text to plain terminal style; ANSI code 00 equivalent
Bold
Bold text in the terminal; ANSI code 01 equivalent
Underline
Underline text in the terminal; ANSI code 04 equivalent
Italic
Italisize text in the terminal; ANSI code 03 equivalent
Fg(Color)
Set a foreground color
Bg(Color)
Set a background color
Trait Implementations§
impl Copy for Style
impl Eq for Style
Source§impl<'a> Extend<&'a Style> for CompleteStyle
impl<'a> Extend<&'a Style> for CompleteStyle
Source§fn extend<E: IntoIterator<Item = &'a Style>>(&mut self, styles: E)
fn extend<E: IntoIterator<Item = &'a Style>>(&mut self, styles: E)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<Style> for CompleteStyle
impl From<Style> for CompleteStyle
Source§impl<'a> FromIterator<&'a Style> for CompleteStyle
impl<'a> FromIterator<&'a Style> for CompleteStyle
Source§fn from_iter<I: IntoIterator<Item = &'a Style>>(iter: I) -> CompleteStyle
fn from_iter<I: IntoIterator<Item = &'a Style>>(iter: I) -> CompleteStyle
Creates a value from an iterator. Read more
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more