pub enum SemanticTokenModifier {
Declaration,
Definition,
Reference,
Modification,
Static,
DefaultLibrary,
Async,
Readonly,
Deprecated,
}Expand description
Token modifiers that can be applied to token types
Variants§
Declaration
Token is at a declaration site (first introduction)
Definition
Token is at a definition site (same as declaration)
Reference
Token is a reference to a previously declared item
Modification
Token is being modified (e.g., assignment target)
Static
Token is package-level (not lexically scoped)
DefaultLibrary
Token refers to a built-in function or variable
Async
Token is part of an async operation
Readonly
Token is a constant or read-only value
Deprecated
Token refers to a deprecated item
Implementations§
Trait Implementations§
Source§impl Clone for SemanticTokenModifier
impl Clone for SemanticTokenModifier
Source§fn clone(&self) -> SemanticTokenModifier
fn clone(&self) -> SemanticTokenModifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SemanticTokenModifier
Source§impl Debug for SemanticTokenModifier
impl Debug for SemanticTokenModifier
impl Eq for SemanticTokenModifier
Source§impl Hash for SemanticTokenModifier
impl Hash for SemanticTokenModifier
Source§impl PartialEq for SemanticTokenModifier
impl PartialEq for SemanticTokenModifier
Source§fn eq(&self, other: &SemanticTokenModifier) -> bool
fn eq(&self, other: &SemanticTokenModifier) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SemanticTokenModifier
Auto Trait Implementations§
impl Freeze for SemanticTokenModifier
impl RefUnwindSafe for SemanticTokenModifier
impl Send for SemanticTokenModifier
impl Sync for SemanticTokenModifier
impl Unpin for SemanticTokenModifier
impl UnsafeUnpin for SemanticTokenModifier
impl UnwindSafe for SemanticTokenModifier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.