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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SemanticTokenModifier) -> bool
fn ne(&self, other: &SemanticTokenModifier) -> bool
This method tests for !=
.
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more