Struct lsp_types::SemanticTokenModifier
source · pub struct SemanticTokenModifier(/* private fields */);
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§
source§impl SemanticTokenModifier
impl SemanticTokenModifier
pub const DECLARATION: SemanticTokenModifier = _
pub const DEFINITION: SemanticTokenModifier = _
pub const READONLY: SemanticTokenModifier = _
pub const STATIC: SemanticTokenModifier = _
pub const DEPRECATED: SemanticTokenModifier = _
pub const ABSTRACT: SemanticTokenModifier = _
pub const ASYNC: SemanticTokenModifier = _
pub const MODIFICATION: SemanticTokenModifier = _
pub const DOCUMENTATION: SemanticTokenModifier = _
pub const DEFAULT_LIBRARY: SemanticTokenModifier = _
pub const fn new(tag: &'static str) -> Self
pub fn as_str(&self) -> &str
Trait Implementations§
source§impl Clone for SemanticTokenModifier
impl Clone for SemanticTokenModifier
source§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 moresource§impl Debug for SemanticTokenModifier
impl Debug for SemanticTokenModifier
source§impl<'de> Deserialize<'de> for SemanticTokenModifier
impl<'de> Deserialize<'de> for SemanticTokenModifier
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 From<&'static str> for SemanticTokenModifier
impl From<&'static str> for SemanticTokenModifier
source§impl From<String> for SemanticTokenModifier
impl From<String> 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
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SemanticTokenModifier
impl PartialOrd for SemanticTokenModifier
source§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 moresource§impl Serialize for SemanticTokenModifier
impl Serialize for SemanticTokenModifier
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
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.