pub enum Effect {
Simple,
Reverse,
Dim,
Bold,
Italic,
Strikethrough,
Underline,
Blink,
}
Expand description
Text effect
Variants
Simple
No effect
Reverse
Reverses foreground and background colors
Dim
Prints foreground as “dim” or “faint” (has no effect for ncurses/pancurses/blt backends)
Bold
Prints foreground in bold
Italic
Prints foreground in italic
Strikethrough
Prints foreground with strikethrough (has no effect for ncurses and blt backends)
Underline
Prints foreground with underline
Blink
Foreground text blinks (background color is static).
Trait Implementations
sourceimpl PartialEq<Effect> for Effect
impl PartialEq<Effect> for Effect
sourceimpl PartialEq<EnumSet<Effect>> for Effect
impl PartialEq<EnumSet<Effect>> for Effect
impl Copy for Effect
impl EnumSetType for Effect
impl Eq for Effect
Auto Trait Implementations
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnwindSafe for Effect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more