Struct lsp_types::SemanticTokenModifier
source · [−]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
sourceimpl 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
sourceimpl Clone for SemanticTokenModifier
impl Clone for SemanticTokenModifier
sourcefn clone(&self) -> SemanticTokenModifier
fn clone(&self) -> SemanticTokenModifier
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SemanticTokenModifier
impl Debug for SemanticTokenModifier
sourceimpl<'de> Deserialize<'de> for SemanticTokenModifier
impl<'de> Deserialize<'de> for SemanticTokenModifier
sourcefn 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
sourceimpl From<&'static str> for SemanticTokenModifier
impl From<&'static str> for SemanticTokenModifier
sourceimpl From<String> for SemanticTokenModifier
impl From<String> for SemanticTokenModifier
sourceimpl Hash for SemanticTokenModifier
impl Hash for SemanticTokenModifier
sourceimpl PartialEq<SemanticTokenModifier> for SemanticTokenModifier
impl PartialEq<SemanticTokenModifier> for SemanticTokenModifier
sourcefn eq(&self, other: &SemanticTokenModifier) -> bool
fn eq(&self, other: &SemanticTokenModifier) -> bool
sourceimpl PartialOrd<SemanticTokenModifier> for SemanticTokenModifier
impl PartialOrd<SemanticTokenModifier> for SemanticTokenModifier
sourcefn partial_cmp(&self, other: &SemanticTokenModifier) -> Option<Ordering>
fn partial_cmp(&self, other: &SemanticTokenModifier) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more