pub enum SymbolKind {
Show 15 variants
Function,
Method,
Class,
Struct,
Enum,
Trait,
Interface,
Module,
Type,
Value,
Import,
Package,
Workspace,
Dependency,
Unknown,
}Expand description
Kind of symbol stored in the ProjectAtlas graph.
Variants§
Function
A free function or language-level function declaration.
Method
A method declaration associated with a type or class.
Class
A class declaration.
Struct
A Rust-style struct or record declaration.
Enum
An enum declaration.
Trait
A trait declaration.
Interface
An interface declaration.
Module
A module, namespace, package, or source unit.
Type
A type alias or type declaration.
Value
A constant, static, field, or variable declaration worth indexing.
Import
An import, use, include, using, or package dependency edge source.
Package
A package manifest entry such as a Cargo package.
Workspace
A workspace manifest entry such as a Cargo workspace.
Dependency
A dependency declared in a manifest.
Unknown
A symbol that did not map cleanly to a richer kind.
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 · 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 Display for SymbolKind
impl Display for SymbolKind
Source§impl PartialEq for SymbolKind
impl PartialEq for SymbolKind
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.