pub struct StyleLayerId(pub u32);Expand description
Style layer ID
Used to distinguish style sources (e.g., LSP semantic highlighting, simple syntax highlighting, diagnostics, etc.), allowing replacement/clearing of one layer without affecting other style layers.
Tuple Fields§
§0: u32Implementations§
Source§impl StyleLayerId
impl StyleLayerId
Sourcepub const SEMANTIC_TOKENS: Self
pub const SEMANTIC_TOKENS: Self
LSP semanticTokens style layer (recommended for semantic highlighting).
Sourcepub const SIMPLE_SYNTAX: Self
pub const SIMPLE_SYNTAX: Self
Simple syntax highlighting style layer (e.g., regex-based JSON/INI highlighting).
Sourcepub const SUBLIME_SYNTAX: Self
pub const SUBLIME_SYNTAX: Self
Sublime Text .sublime-syntax style layer (lightweight syntax highlighting/folding).
Sourcepub const DIAGNOSTICS: Self
pub const DIAGNOSTICS: Self
LSP diagnostics overlay layer.
This is intended for underlines / gutter markers sourced from LSP diagnostics.
Sourcepub const DOCUMENT_HIGHLIGHTS: Self
pub const DOCUMENT_HIGHLIGHTS: Self
LSP textDocument/documentHighlight overlay layer.
Sourcepub const TREE_SITTER: Self
pub const TREE_SITTER: Self
Tree-sitter syntax highlighting style layer.
Sourcepub const IME_MARKED_TEXT: Self
pub const IME_MARKED_TEXT: Self
IME marked text (composition / preedit) overlay layer.
Sourcepub const DOCUMENT_LINKS: Self
pub const DOCUMENT_LINKS: Self
LSP document links overlay layer.
This is intended for underlines / click targets sourced from textDocument/documentLink.
Sourcepub const MATCH_HIGHLIGHTS: Self
pub const MATCH_HIGHLIGHTS: Self
Match highlights overlay layer (search matches, bracket highlights, etc).
Sourcepub const BRACKET_MATCHES: Self
pub const BRACKET_MATCHES: Self
Bracket match overlay layer (matching bracket highlights).
Trait Implementations§
Source§impl Clone for StyleLayerId
impl Clone for StyleLayerId
Source§fn clone(&self) -> StyleLayerId
fn clone(&self) -> StyleLayerId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more