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§impl PartialOrd for SemanticTokenModifier
impl PartialOrd for SemanticTokenModifier
source§impl Serialize for SemanticTokenModifier
impl Serialize for SemanticTokenModifier
impl Eq for SemanticTokenModifier
impl StructuralPartialEq for SemanticTokenModifier
Auto Trait Implementations§
impl Freeze for SemanticTokenModifier
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.