pub struct Symbol {
pub id: String,
pub name: String,
pub kind: SymbolKind,
pub file: PathBuf,
pub line: usize,
pub column: usize,
pub references: Vec<SymbolReference>,
}Expand description
Code symbol (function, class, type, etc.)
Fields§
§id: StringUnique symbol ID
name: StringSymbol name
kind: SymbolKindSymbol kind
file: PathBufFile containing the symbol
line: usizeLine number (1-indexed)
column: usizeColumn number (1-indexed)
references: Vec<SymbolReference>References to this symbol
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Symbol
impl<'de> Deserialize<'de> for Symbol
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 StructuralPartialEq for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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