pub enum SymbolKind {
Show 27 variants
File,
Module,
Namespace,
Package,
Class,
Method,
Property,
Field,
Constructor,
Enum,
Interface,
Function,
Variable,
Constant,
String,
Number,
Boolean,
Array,
Object,
Key,
Null,
EnumMember,
Struct,
Event,
Operator,
TypeParameter,
Custom(u32),
}Expand description
A coarse symbol kind tag.
Variants§
File
A file-level symbol.
Module
A module symbol.
Namespace
A namespace symbol.
Package
A package symbol.
Class
A class symbol.
Method
A method symbol.
Property
A property symbol.
Field
A field symbol.
Constructor
A constructor symbol.
Enum
An enum symbol.
Interface
An interface symbol.
Function
A function symbol.
Variable
A variable symbol.
Constant
A constant symbol.
String
A string literal / string-like symbol.
Number
A numeric symbol.
Boolean
A boolean symbol.
Array
An array symbol.
Object
An object symbol.
Key
A key symbol.
Null
A null symbol.
EnumMember
An enum member symbol.
Struct
A struct symbol.
Event
An event symbol.
Operator
An operator symbol.
TypeParameter
A type parameter symbol.
Custom(u32)
An integration-defined kind value.
Implementations§
Source§impl SymbolKind
impl SymbolKind
Sourcepub fn from_lsp_kind(kind: u32) -> Self
pub fn from_lsp_kind(kind: u32) -> Self
Convert an LSP SymbolKind numeric value into a SymbolKind.
Trait Implementations§
Source§impl Clone for SymbolKind
impl Clone for SymbolKind
Source§fn clone(&self) -> SymbolKind
fn clone(&self) -> SymbolKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SymbolKind
impl Debug for SymbolKind
Source§impl Hash for SymbolKind
impl Hash for SymbolKind
Source§impl Ord for SymbolKind
impl Ord for SymbolKind
Source§fn cmp(&self, other: &SymbolKind) -> Ordering
fn cmp(&self, other: &SymbolKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SymbolKind
impl PartialEq for SymbolKind
Source§impl PartialOrd for SymbolKind
impl PartialOrd for SymbolKind
impl Copy for SymbolKind
impl Eq for SymbolKind
impl StructuralPartialEq for SymbolKind
Auto Trait Implementations§
impl Freeze for SymbolKind
impl RefUnwindSafe for SymbolKind
impl Send for SymbolKind
impl Sync for SymbolKind
impl Unpin for SymbolKind
impl UnsafeUnpin for SymbolKind
impl UnwindSafe for SymbolKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more