pub enum SemanticTokenTypes {
}Expand description
A set of predefined token types. This set is not fixed an clients can specify additional token types via the corresponding client capabilities.
@since 3.16.0
Variants§
Namespace
Type
Represents a generic type. Acts as a fallback for types which can’t be mapped to a specific type like class or enum.
Class
Enum
Interface
Struct
TypeParameter
Parameter
Variable
Property
EnumMember
Event
Function
Method
Macro
Keyword
Modifier
Comment
String
Number
Regexp
Operator
Decorator
@since 3.17.0
Label
@since 3.18.0
Custom(Cow<'static, str>)
A custom value.
Implementations§
Trait Implementations§
Source§impl Clone for SemanticTokenTypes
impl Clone for SemanticTokenTypes
Source§fn clone(&self) -> SemanticTokenTypes
fn clone(&self) -> SemanticTokenTypes
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 moreSource§impl Debug for SemanticTokenTypes
impl Debug for SemanticTokenTypes
Source§impl<'de> Deserialize<'de> for SemanticTokenTypes
impl<'de> Deserialize<'de> for SemanticTokenTypes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SemanticTokenTypes
impl Display for SemanticTokenTypes
Source§impl From<&'static str> for SemanticTokenTypes
impl From<&'static str> for SemanticTokenTypes
Source§impl From<SemanticTokenTypes> for String
impl From<SemanticTokenTypes> for String
Source§fn from(e: SemanticTokenTypes) -> Self
fn from(e: SemanticTokenTypes) -> Self
Converts to this type from the input type.
Source§impl From<String> for SemanticTokenTypes
impl From<String> for SemanticTokenTypes
Source§impl Hash for SemanticTokenTypes
impl Hash for SemanticTokenTypes
Source§impl PartialEq for SemanticTokenTypes
impl PartialEq for SemanticTokenTypes
Source§fn eq(&self, other: &SemanticTokenTypes) -> bool
fn eq(&self, other: &SemanticTokenTypes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SemanticTokenTypes
impl Serialize for SemanticTokenTypes
impl Eq for SemanticTokenTypes
impl StructuralPartialEq for SemanticTokenTypes
Auto Trait Implementations§
impl Freeze for SemanticTokenTypes
impl RefUnwindSafe for SemanticTokenTypes
impl Send for SemanticTokenTypes
impl Sync for SemanticTokenTypes
impl Unpin for SemanticTokenTypes
impl UnsafeUnpin for SemanticTokenTypes
impl UnwindSafe for SemanticTokenTypes
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