pub enum ThemeSlot {
Show 28 variants
Keyword,
Function,
String,
Comment,
Type,
Variable,
Constant,
Number,
Operator,
Punctuation,
Property,
Attribute,
Tag,
Macro,
Label,
Namespace,
Constructor,
Title,
Strong,
Emphasis,
Link,
Literal,
Strikethrough,
DiffAdd,
DiffDelete,
Embedded,
Error,
None,
}Expand description
The theme slots - the fixed set of color categories that themes define. This is the final destination for all capture names.
Variants§
Keyword
Function
String
Comment
Type
Variable
Constant
Number
Operator
Punctuation
Property
Attribute
Tag
Macro
Label
Namespace
Constructor
Title
Markup: headings, titles
Strong
Markup: bold text
Emphasis
Markup: italic text
Link
Markup: links/URLs
Literal
Markup: raw/literal/code blocks
Strikethrough
Markup: strikethrough
DiffAdd
Diff additions
DiffDelete
Diff deletions
Embedded
Embedded content
Error
Errors
None
No styling (invisible captures like spell, nospell)
Implementations§
Trait Implementations§
impl Copy for ThemeSlot
impl Eq for ThemeSlot
impl StructuralPartialEq for ThemeSlot
Auto Trait Implementations§
impl Freeze for ThemeSlot
impl RefUnwindSafe for ThemeSlot
impl Send for ThemeSlot
impl Sync for ThemeSlot
impl Unpin for ThemeSlot
impl UnwindSafe for ThemeSlot
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