Struct lsp_types::SemanticTokenType [−][src]
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
impl SemanticTokenType[src]
pub const NAMESPACE: SemanticTokenType[src]
pub const TYPE: SemanticTokenType[src]
pub const CLASS: SemanticTokenType[src]
pub const ENUM: SemanticTokenType[src]
pub const INTERFACE: SemanticTokenType[src]
pub const STRUCT: SemanticTokenType[src]
pub const TYPE_PARAMETER: SemanticTokenType[src]
pub const PARAMETER: SemanticTokenType[src]
pub const VARIABLE: SemanticTokenType[src]
pub const PROPERTY: SemanticTokenType[src]
pub const ENUM_MEMBER: SemanticTokenType[src]
pub const EVENT: SemanticTokenType[src]
pub const FUNCTION: SemanticTokenType[src]
pub const METHOD: SemanticTokenType[src]
pub const MACRO: SemanticTokenType[src]
pub const KEYWORD: SemanticTokenType[src]
pub const MODIFIER: SemanticTokenType[src]
pub const COMMENT: SemanticTokenType[src]
pub const STRING: SemanticTokenType[src]
pub const NUMBER: SemanticTokenType[src]
pub const REGEXP: SemanticTokenType[src]
pub const OPERATOR: SemanticTokenType[src]
pub const fn new(tag: &'static str) -> Self[src]
pub fn as_str(&self) -> &str[src]
Trait Implementations
impl Clone for SemanticTokenType[src]
fn clone(&self) -> SemanticTokenType[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SemanticTokenType[src]
impl<'de> Deserialize<'de> for SemanticTokenType[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for SemanticTokenType[src]
impl From<&'static str> for SemanticTokenType[src]
impl From<String> for SemanticTokenType[src]
impl Hash for SemanticTokenType[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<SemanticTokenType> for SemanticTokenType[src]
fn eq(&self, other: &SemanticTokenType) -> bool[src]
fn ne(&self, other: &SemanticTokenType) -> bool[src]
impl PartialOrd<SemanticTokenType> for SemanticTokenType[src]
fn partial_cmp(&self, other: &SemanticTokenType) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl Serialize for SemanticTokenType[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for SemanticTokenType[src]
impl StructuralPartialEq for SemanticTokenType[src]
Auto Trait Implementations
impl RefUnwindSafe for SemanticTokenType[src]
impl Send for SemanticTokenType[src]
impl Sync for SemanticTokenType[src]
impl Unpin for SemanticTokenType[src]
impl UnwindSafe for SemanticTokenType[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,