Struct lsp_types::SemanticTokenType
source · [−]pub struct SemanticTokenType(_);
Expand description
A set of predefined token types. This set is not fixed and clients can specify additional token types via the corresponding client capabilities.
@since 3.16.0
Implementations
sourceimpl SemanticTokenType
impl SemanticTokenType
pub const NAMESPACE: SemanticTokenType
pub const TYPE: SemanticTokenType
pub const CLASS: SemanticTokenType
pub const ENUM: SemanticTokenType
pub const INTERFACE: SemanticTokenType
pub const STRUCT: SemanticTokenType
pub const TYPE_PARAMETER: SemanticTokenType
pub const PARAMETER: SemanticTokenType
pub const VARIABLE: SemanticTokenType
pub const PROPERTY: SemanticTokenType
pub const ENUM_MEMBER: SemanticTokenType
pub const EVENT: SemanticTokenType
pub const FUNCTION: SemanticTokenType
pub const METHOD: SemanticTokenType
pub const MACRO: SemanticTokenType
pub const KEYWORD: SemanticTokenType
pub const MODIFIER: SemanticTokenType
pub const COMMENT: SemanticTokenType
pub const STRING: SemanticTokenType
pub const NUMBER: SemanticTokenType
pub const REGEXP: SemanticTokenType
pub const OPERATOR: SemanticTokenType
pub const fn new(tag: &'static str) -> Self
pub fn as_str(&self) -> &str
Trait Implementations
sourceimpl Clone for SemanticTokenType
impl Clone for SemanticTokenType
sourcefn clone(&self) -> SemanticTokenType
fn clone(&self) -> SemanticTokenType
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 SemanticTokenType
impl Debug for SemanticTokenType
sourceimpl<'de> Deserialize<'de> for SemanticTokenType
impl<'de> Deserialize<'de> for SemanticTokenType
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 SemanticTokenType
impl From<&'static str> for SemanticTokenType
sourceimpl From<String> for SemanticTokenType
impl From<String> for SemanticTokenType
sourceimpl Hash for SemanticTokenType
impl Hash for SemanticTokenType
sourceimpl PartialEq<SemanticTokenType> for SemanticTokenType
impl PartialEq<SemanticTokenType> for SemanticTokenType
sourcefn eq(&self, other: &SemanticTokenType) -> bool
fn eq(&self, other: &SemanticTokenType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SemanticTokenType) -> bool
fn ne(&self, other: &SemanticTokenType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SemanticTokenType> for SemanticTokenType
impl PartialOrd<SemanticTokenType> for SemanticTokenType
sourcefn partial_cmp(&self, other: &SemanticTokenType) -> Option<Ordering>
fn partial_cmp(&self, other: &SemanticTokenType) -> 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 SemanticTokenType
impl Serialize for SemanticTokenType
impl Eq for SemanticTokenType
impl StructuralEq for SemanticTokenType
impl StructuralPartialEq for SemanticTokenType
Auto Trait Implementations
impl RefUnwindSafe for SemanticTokenType
impl Send for SemanticTokenType
impl Sync for SemanticTokenType
impl Unpin for SemanticTokenType
impl UnwindSafe for SemanticTokenType
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