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.
Trait Implementations§
Source§impl Clone for StyleLayerId
impl Clone for StyleLayerId
Source§fn clone(&self) -> StyleLayerId
fn clone(&self) -> StyleLayerId
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 StyleLayerId
impl Debug for StyleLayerId
Source§impl Hash for StyleLayerId
impl Hash for StyleLayerId
Source§impl Ord for StyleLayerId
impl Ord for StyleLayerId
Source§fn cmp(&self, other: &StyleLayerId) -> Ordering
fn cmp(&self, other: &StyleLayerId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StyleLayerId
impl PartialEq for StyleLayerId
Source§impl PartialOrd for StyleLayerId
impl PartialOrd for StyleLayerId
impl Copy for StyleLayerId
impl Eq for StyleLayerId
impl StructuralPartialEq for StyleLayerId
Auto Trait Implementations§
impl Freeze for StyleLayerId
impl RefUnwindSafe for StyleLayerId
impl Send for StyleLayerId
impl Sync for StyleLayerId
impl Unpin for StyleLayerId
impl UnwindSafe for StyleLayerId
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