pub enum SymbolKind {
Function,
Method,
Class,
Struct,
Enum,
Trait,
Interface,
Module,
Type,
Constant,
Variable,
Heading,
}Expand description
Symbol kind classification
Variants§
Function
A standalone function or procedure.
Method
A method belonging to a class, struct, or impl block.
Class
A class definition (OOP languages).
Struct
A struct definition.
Enum
An enum definition.
Trait
A trait definition (Rust) or abstract interface.
Interface
An interface definition (Java, Go, TypeScript).
Module
A module, namespace, or package declaration.
Type
A type alias or type definition.
Constant
A constant or compile-time value.
Variable
A variable declaration.
Heading
A Markdown heading (used to represent document sections as symbols).
Implementations§
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 (const: unstable) · 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<'de> Deserialize<'de> for SymbolKind
impl<'de> Deserialize<'de> for SymbolKind
Source§fn 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
Source§impl PartialEq for SymbolKind
impl PartialEq for SymbolKind
Source§fn eq(&self, other: &SymbolKind) -> bool
fn eq(&self, other: &SymbolKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SymbolKind
impl Serialize 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