pub enum SymbolKindTag {
Function,
Type,
Enum,
Trait,
Class,
Interface,
TypeAlias,
Const,
Module,
Other,
}Expand description
Coarse symbol classification carried by the index. Mirrors the
semantic::symbol_resolver::DefinitionKind taxonomy so types, traits,
enums, modules and the rest are first-class in the index — not just
functions.
The snake_case serde spelling is the durable wire form; the tag_byte
value is the durable hashing form and must never be renumbered (doing so
would silently change every semantic_hash/semantic_digest).
Variants§
Function
Function / method / free function body.
Type
Struct or record type definition.
Enum
Enum definition.
Trait
Trait declaration (Rust).
Class
Class declaration (Python / JS / TS / Java / C++).
Interface
Interface declaration (TS / Java / Go).
TypeAlias
Type alias (type Foo = ...).
Const
Constant or static at module scope.
Module
Module / namespace.
Other
Parseable but unclassified definition.
Implementations§
Trait Implementations§
Source§impl Clone for SymbolKindTag
impl Clone for SymbolKindTag
Source§fn clone(&self) -> SymbolKindTag
fn clone(&self) -> SymbolKindTag
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 moreimpl Copy for SymbolKindTag
Source§impl Debug for SymbolKindTag
impl Debug for SymbolKindTag
Source§impl<'de> Deserialize<'de> for SymbolKindTag
impl<'de> Deserialize<'de> for SymbolKindTag
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 SymbolKindTag
Source§impl Hash for SymbolKindTag
impl Hash for SymbolKindTag
Source§impl Ord for SymbolKindTag
impl Ord for SymbolKindTag
Source§fn cmp(&self, other: &SymbolKindTag) -> Ordering
fn cmp(&self, other: &SymbolKindTag) -> Ordering
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
Source§impl PartialEq for SymbolKindTag
impl PartialEq for SymbolKindTag
Source§impl PartialOrd for SymbolKindTag
impl PartialOrd for SymbolKindTag
Source§impl Serialize for SymbolKindTag
impl Serialize for SymbolKindTag
impl StructuralPartialEq for SymbolKindTag
Auto Trait Implementations§
impl Freeze for SymbolKindTag
impl RefUnwindSafe for SymbolKindTag
impl Send for SymbolKindTag
impl Sync for SymbolKindTag
impl Unpin for SymbolKindTag
impl UnsafeUnpin for SymbolKindTag
impl UnwindSafe for SymbolKindTag
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