#[repr(C)]pub union GhosttySgrAttributeValue {
Show 13 fields
pub unknown: GhosttySgrUnknown,
pub underline: GhosttySgrUnderline,
pub underline_color: GhosttyColorRgb,
pub underline_color_256: GhosttyColorPaletteIndex,
pub direct_color_fg: GhosttyColorRgb,
pub direct_color_bg: GhosttyColorRgb,
pub bg_8: GhosttyColorPaletteIndex,
pub fg_8: GhosttyColorPaletteIndex,
pub bright_bg_8: GhosttyColorPaletteIndex,
pub bright_fg_8: GhosttyColorPaletteIndex,
pub bg_256: GhosttyColorPaletteIndex,
pub fg_256: GhosttyColorPaletteIndex,
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.
@ingroup sgr
Fields§
§unknown: GhosttySgrUnknown§underline: GhosttySgrUnderline§underline_color: GhosttyColorRgb§underline_color_256: GhosttyColorPaletteIndex§direct_color_fg: GhosttyColorRgb§direct_color_bg: GhosttyColorRgb§bg_8: GhosttyColorPaletteIndex§fg_8: GhosttyColorPaletteIndex§bright_bg_8: GhosttyColorPaletteIndex§bright_fg_8: GhosttyColorPaletteIndex§bg_256: GhosttyColorPaletteIndex§fg_256: GhosttyColorPaletteIndex§_padding: [u64; 8]Trait Implementations§
Source§impl Clone for GhosttySgrAttributeValue
impl Clone for GhosttySgrAttributeValue
Source§fn clone(&self) -> GhosttySgrAttributeValue
fn clone(&self) -> GhosttySgrAttributeValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GhosttySgrAttributeValue
impl Default for GhosttySgrAttributeValue
impl Copy for GhosttySgrAttributeValue
Auto Trait Implementations§
impl Freeze for GhosttySgrAttributeValue
impl RefUnwindSafe for GhosttySgrAttributeValue
impl !Send for GhosttySgrAttributeValue
impl !Sync for GhosttySgrAttributeValue
impl Unpin for GhosttySgrAttributeValue
impl UnsafeUnpin for GhosttySgrAttributeValue
impl UnwindSafe for GhosttySgrAttributeValue
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