pub enum SymbolKind {
Module,
Struct,
Enum,
Union,
Trait,
TypeAlias,
Function,
Method,
Const,
Static,
Macro,
}Expand description
What kind of thing a Symbol is.
The set is a superset of what common languages need; frontends map their
own constructs onto the closest variant (a TypeScript interface would be
a SymbolKind::Trait, a Python class a SymbolKind::Struct).
Variants§
Module
A module / namespace. Every source file has one.
Struct
A product type with named or positional fields.
Enum
A sum type.
Union
An untagged union.
Trait
An interface / trait / protocol.
TypeAlias
A type alias.
Function
A free function.
Method
A function attached to a type (inherent or trait method, including
associated functions without self).
Const
A constant.
Static
A static / global variable.
Macro
A macro definition.
Implementations§
Source§impl SymbolKind
impl SymbolKind
Trait Implementations§
Source§impl Clone for SymbolKind
impl Clone for SymbolKind
impl Copy for SymbolKind
Source§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
impl Eq for SymbolKind
Source§impl Hash for SymbolKind
impl Hash for SymbolKind
Source§impl Ord for SymbolKind
impl Ord for SymbolKind
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SymbolKind
impl PartialEq for SymbolKind
Source§impl PartialOrd for SymbolKind
impl PartialOrd for SymbolKind
Source§impl Serialize for SymbolKind
impl Serialize 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