pub struct SemanticTokenModifiers(pub String);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
Tuple Fields§
§0: StringImplementations§
Source§impl SemanticTokenModifiers
impl SemanticTokenModifiers
pub const DECLARATION: &'static str = "declaration"
pub const DEFINITION: &'static str = "definition"
pub const READONLY: &'static str = "readonly"
pub const STATIC: &'static str = "static"
pub const DEPRECATED: &'static str = "deprecated"
pub const ABSTRACT: &'static str = "abstract"
pub const ASYNC: &'static str = "async"
pub const MODIFICATION: &'static str = "modification"
pub const DOCUMENTATION: &'static str = "documentation"
pub const DEFAULT_LIBRARY: &'static str = "defaultLibrary"
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
impl Eq 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 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