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 moresourceimpl 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
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>
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 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 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