#[repr(C)]pub union SgrAttributeValue {
Show 13 fields
pub unknown: SgrUnknown,
pub underline: Type,
pub underline_color: ColorRgb,
pub underline_color_256: ColorPaletteIndex,
pub direct_color_fg: ColorRgb,
pub direct_color_bg: ColorRgb,
pub bg_8: ColorPaletteIndex,
pub fg_8: ColorPaletteIndex,
pub bright_bg_8: ColorPaletteIndex,
pub bright_fg_8: ColorPaletteIndex,
pub bg_256: ColorPaletteIndex,
pub fg_256: ColorPaletteIndex,
pub _padding: [u64; 8],
}Expand description
SGR attribute value union.
This union contains all possible attribute values. Use the tag field to determine which union member is active. Attributes without associated data (like bold, italic) don’t use the union value.
Fields§
§unknown: SgrUnknown§underline: Type§underline_color: ColorRgb§underline_color_256: ColorPaletteIndex§direct_color_fg: ColorRgb§direct_color_bg: ColorRgb§bg_8: ColorPaletteIndex§fg_8: ColorPaletteIndex§bright_bg_8: ColorPaletteIndex§bright_fg_8: ColorPaletteIndex§bg_256: ColorPaletteIndex§fg_256: ColorPaletteIndex§_padding: [u64; 8]Trait Implementations§
Source§impl Clone for SgrAttributeValue
impl Clone for SgrAttributeValue
Source§fn clone(&self) -> SgrAttributeValue
fn clone(&self) -> SgrAttributeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SgrAttributeValue
Auto Trait Implementations§
impl !Send for SgrAttributeValue
impl !Sync for SgrAttributeValue
impl Freeze for SgrAttributeValue
impl RefUnwindSafe for SgrAttributeValue
impl Unpin for SgrAttributeValue
impl UnsafeUnpin for SgrAttributeValue
impl UnwindSafe for SgrAttributeValue
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