#[repr(transparent)]pub struct StyleFlags(pub u16);Expand description
Text attribute flags (16 bits for extended attribute support).
These flags represent visual attributes that can be applied to text. Using u16 allows for additional underline variants beyond basic SGR.
Tuple Fields§
§0: u16Implementations§
Source§impl StyleFlags
impl StyleFlags
Sourcepub const STRIKETHROUGH: Self
pub const STRIKETHROUGH: Self
Strikethrough text.
Sourcepub const DOUBLE_UNDERLINE: Self
pub const DOUBLE_UNDERLINE: Self
Double underline (extended attribute).
Sourcepub const CURLY_UNDERLINE: Self
pub const CURLY_UNDERLINE: Self
Curly / wavy underline (extended attribute).
Trait Implementations§
Source§impl BitOr for StyleFlags
impl BitOr for StyleFlags
Source§impl BitOrAssign for StyleFlags
impl BitOrAssign for StyleFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for StyleFlags
impl Clone for StyleFlags
Source§fn clone(&self) -> StyleFlags
fn clone(&self) -> StyleFlags
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 Debug for StyleFlags
impl Debug for StyleFlags
Source§impl Default for StyleFlags
impl Default for StyleFlags
Source§fn default() -> StyleFlags
fn default() -> StyleFlags
Returns the “default value” for a type. Read more
Source§impl From<StyleFlags> for StyleFlags
Convert from cell-level StyleFlags (8-bit) to style-level StyleFlags (16-bit).
impl From<StyleFlags> for StyleFlags
Convert from cell-level StyleFlags (8-bit) to style-level StyleFlags (16-bit).
Source§fn from(flags: StyleFlags) -> Self
fn from(flags: StyleFlags) -> Self
Converts to this type from the input type.
Source§impl From<StyleFlags> for StyleFlags
Convert from style-level StyleFlags (16-bit) to cell-level StyleFlags (8-bit).
impl From<StyleFlags> for StyleFlags
Convert from style-level StyleFlags (16-bit) to cell-level StyleFlags (8-bit).
Note: Extended flags (DOUBLE_UNDERLINE, CURLY_UNDERLINE) are mapped to basic UNDERLINE since the cell-level representation doesn’t support them.
Source§fn from(flags: StyleFlags) -> Self
fn from(flags: StyleFlags) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleFlags
impl Hash for StyleFlags
Source§impl PartialEq for StyleFlags
impl PartialEq for StyleFlags
impl Copy for StyleFlags
impl Eq for StyleFlags
impl StructuralPartialEq for StyleFlags
Auto Trait Implementations§
impl Freeze for StyleFlags
impl RefUnwindSafe for StyleFlags
impl Send for StyleFlags
impl Sync for StyleFlags
impl Unpin for StyleFlags
impl UnsafeUnpin for StyleFlags
impl UnwindSafe for StyleFlags
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