#[non_exhaustive]#[repr(u32)]pub enum TextAttr {
None = 0,
BgColor = 1,
BgColorExt = 3,
Underline = 4,
Grammar = 8,
Spelling = 12,
StrikeThrough = 16,
}
Expand description
The attribute of the style entry
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.
None = 0
No attribute
BgColor = 1
Use the background color in the bgcolor
field
BgColorExt = 3
Use the background color in the bgcolor
field to highlight the whole line
Underline = 4
A single underline, underline types are mutually exclusive
Grammar = 8
Grammar suggestion (blue dotted underline)
Spelling = 12
Spelling suggestion (red dotted underline)
StrikeThrough = 16
Line through the middle of the text
Trait Implementations§
source§impl PartialEq for TextAttr
impl PartialEq for TextAttr
impl Copy for TextAttr
impl Eq for TextAttr
impl StructuralEq for TextAttr
impl StructuralPartialEq for TextAttr
Auto Trait Implementations§
impl RefUnwindSafe for TextAttr
impl Send for TextAttr
impl Sync for TextAttr
impl Unpin for TextAttr
impl UnwindSafe for TextAttr
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