pub enum SemanticTokenModifiers {
Declaration,
Definition,
Readonly,
Static,
Deprecated,
Abstract,
Async,
Modification,
Documentation,
DefaultLibrary,
Custom(Cow<'static, str>),
}Expand description
A set of predefined token modifiers. This set is not fixed an clients can specify additional token types via the corresponding client capabilities.
@since 3.16.0
Variants§
Declaration
Definition
Readonly
Static
Deprecated
Abstract
Async
Modification
Documentation
DefaultLibrary
Custom(Cow<'static, str>)
A custom value.
Implementations§
Trait Implementations§
Source§impl Clone for SemanticTokenModifiers
impl Clone for SemanticTokenModifiers
Source§fn clone(&self) -> SemanticTokenModifiers
fn clone(&self) -> SemanticTokenModifiers
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 SemanticTokenModifiers
impl Debug for SemanticTokenModifiers
Source§impl<'de> Deserialize<'de> for SemanticTokenModifiers
impl<'de> Deserialize<'de> for SemanticTokenModifiers
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 SemanticTokenModifiers
impl Display for SemanticTokenModifiers
Source§impl From<&'static str> for SemanticTokenModifiers
impl From<&'static str> for SemanticTokenModifiers
Source§impl From<SemanticTokenModifiers> for String
impl From<SemanticTokenModifiers> for String
Source§fn from(e: SemanticTokenModifiers) -> Self
fn from(e: SemanticTokenModifiers) -> Self
Converts to this type from the input type.
Source§impl From<String> for SemanticTokenModifiers
impl From<String> for SemanticTokenModifiers
Source§impl Hash for SemanticTokenModifiers
impl Hash for SemanticTokenModifiers
Source§impl PartialEq for SemanticTokenModifiers
impl PartialEq for SemanticTokenModifiers
Source§fn eq(&self, other: &SemanticTokenModifiers) -> bool
fn eq(&self, other: &SemanticTokenModifiers) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SemanticTokenModifiers
impl Serialize for SemanticTokenModifiers
impl Eq for SemanticTokenModifiers
impl StructuralPartialEq for SemanticTokenModifiers
Auto Trait Implementations§
impl Freeze for SemanticTokenModifiers
impl RefUnwindSafe for SemanticTokenModifiers
impl Send for SemanticTokenModifiers
impl Sync for SemanticTokenModifiers
impl Unpin for SemanticTokenModifiers
impl UnsafeUnpin for SemanticTokenModifiers
impl UnwindSafe for SemanticTokenModifiers
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