#[repr(C)]pub struct GhosttySgrAttribute {
pub tag: GhosttySgrAttributeTag,
pub value: GhosttySgrAttributeValue,
}Expand description
SGR attribute (tagged union).
A complete SGR attribute with both its type tag and associated value. Always check the tag field to determine which value union member is valid.
Attributes without associated data (e.g., GHOSTTY_SGR_ATTR_BOLD) can be identified by tag alone; the value union is not used for these and the memory in the value field is undefined.
@ingroup sgr
Fields§
§tag: GhosttySgrAttributeTag§value: GhosttySgrAttributeValueTrait Implementations§
Source§impl Clone for GhosttySgrAttribute
impl Clone for GhosttySgrAttribute
Source§fn clone(&self) -> GhosttySgrAttribute
fn clone(&self) -> GhosttySgrAttribute
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 GhosttySgrAttribute
impl Default for GhosttySgrAttribute
impl Copy for GhosttySgrAttribute
Auto Trait Implementations§
impl Freeze for GhosttySgrAttribute
impl RefUnwindSafe for GhosttySgrAttribute
impl !Send for GhosttySgrAttribute
impl !Sync for GhosttySgrAttribute
impl Unpin for GhosttySgrAttribute
impl UnsafeUnpin for GhosttySgrAttribute
impl UnwindSafe for GhosttySgrAttribute
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