#[non_exhaustive]pub enum Attribute<'p> {
Show 31 variants
Unset,
Unknown(Unknown<'p>),
Bold,
ResetBold,
Italic,
ResetItalic,
Faint,
Underline(Underline),
UnderlineColor(RgbColor),
UnderlineColor256(PaletteIndex),
ResetUnderlineColor,
Overline,
ResetOverline,
Blink,
ResetBlink,
Inverse,
ResetInverse,
Invisible,
ResetInvisible,
Strikethrough,
ResetStrikethrough,
DirectColorFg(RgbColor),
DirectColorBg(RgbColor),
Bg8(PaletteIndex),
Fg8(PaletteIndex),
ResetFg,
ResetBg,
BrightBg8(PaletteIndex),
BrightFg8(PaletteIndex),
Bg256(PaletteIndex),
Fg256(PaletteIndex),
}Expand description
An SGR attribute.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unset
Unknown(Unknown<'p>)
Bold
ResetBold
Italic
ResetItalic
Faint
Underline(Underline)
UnderlineColor(RgbColor)
UnderlineColor256(PaletteIndex)
ResetUnderlineColor
Overline
ResetOverline
Blink
ResetBlink
Inverse
ResetInverse
Invisible
ResetInvisible
Strikethrough
ResetStrikethrough
DirectColorFg(RgbColor)
DirectColorBg(RgbColor)
Bg8(PaletteIndex)
Fg8(PaletteIndex)
ResetFg
ResetBg
BrightBg8(PaletteIndex)
BrightFg8(PaletteIndex)
Bg256(PaletteIndex)
Fg256(PaletteIndex)
Trait Implementations§
impl<'p> Copy for Attribute<'p>
impl<'p> Eq for Attribute<'p>
impl<'p> StructuralPartialEq for Attribute<'p>
Auto Trait Implementations§
impl<'p> Freeze for Attribute<'p>
impl<'p> RefUnwindSafe for Attribute<'p>
impl<'p> Send for Attribute<'p>
impl<'p> Sync for Attribute<'p>
impl<'p> Unpin for Attribute<'p>
impl<'p> UnsafeUnpin for Attribute<'p>
impl<'p> UnwindSafe for Attribute<'p>
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