Struct lsp2::SemanticTokenModifier
pub struct SemanticTokenModifier(_);
Expand description
A set of predefined token modifiers. This set is not fixed and clients can specify additional token types via the corresponding client capabilities.
@since 3.16.0
Implementations§
§impl SemanticTokenModifier
impl SemanticTokenModifier
pub const DECLARATION: SemanticTokenModifier = SemanticTokenModifier::new("declaration")
pub const DEFINITION: SemanticTokenModifier = SemanticTokenModifier::new("definition")
pub const READONLY: SemanticTokenModifier = SemanticTokenModifier::new("readonly")
pub const STATIC: SemanticTokenModifier = SemanticTokenModifier::new("static")
pub const DEPRECATED: SemanticTokenModifier = SemanticTokenModifier::new("deprecated")
pub const ABSTRACT: SemanticTokenModifier = SemanticTokenModifier::new("abstract")
pub const ASYNC: SemanticTokenModifier = SemanticTokenModifier::new("async")
pub const MODIFICATION: SemanticTokenModifier = SemanticTokenModifier::new("modification")
pub const DOCUMENTATION: SemanticTokenModifier = SemanticTokenModifier::new("documentation")
pub const DEFAULT_LIBRARY: SemanticTokenModifier = SemanticTokenModifier::new("defaultLibrary")
pub const fn new(tag: &'static str) -> SemanticTokenModifier
pub fn as_str(&self) -> &str
Trait Implementations§
§impl Clone for SemanticTokenModifier
impl Clone for SemanticTokenModifier
§fn clone(&self) -> SemanticTokenModifier
fn clone(&self) -> SemanticTokenModifier
Returns a copy 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 more§impl Debug for SemanticTokenModifier
impl Debug for SemanticTokenModifier
§impl<'de> Deserialize<'de> for SemanticTokenModifier
impl<'de> Deserialize<'de> for SemanticTokenModifier
§fn deserialize<__D>(
__deserializer: __D
) -> Result<SemanticTokenModifier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SemanticTokenModifier, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<&'static str> for SemanticTokenModifier
impl From<&'static str> for SemanticTokenModifier
§fn from(from: &'static str) -> SemanticTokenModifier
fn from(from: &'static str) -> SemanticTokenModifier
Converts to this type from the input type.
§impl From<String> for SemanticTokenModifier
impl From<String> for SemanticTokenModifier
§fn from(from: String) -> SemanticTokenModifier
fn from(from: String) -> SemanticTokenModifier
Converts to this type from the input type.
§impl Hash for SemanticTokenModifier
impl Hash for SemanticTokenModifier
§impl PartialEq<SemanticTokenModifier> for SemanticTokenModifier
impl PartialEq<SemanticTokenModifier> for SemanticTokenModifier
§fn eq(&self, other: &SemanticTokenModifier) -> bool
fn eq(&self, other: &SemanticTokenModifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<SemanticTokenModifier> for SemanticTokenModifier
impl PartialOrd<SemanticTokenModifier> for SemanticTokenModifier
§fn partial_cmp(&self, other: &SemanticTokenModifier) -> Option<Ordering>
fn partial_cmp(&self, other: &SemanticTokenModifier) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl Serialize for SemanticTokenModifier
impl Serialize for SemanticTokenModifier
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SemanticTokenModifier
impl StructuralEq for SemanticTokenModifier
impl StructuralPartialEq for SemanticTokenModifier
Auto Trait Implementations§
impl RefUnwindSafe for SemanticTokenModifier
impl Send for SemanticTokenModifier
impl Sync for SemanticTokenModifier
impl Unpin 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.