pub struct Symbol {
pub name: String,
pub kind: Kind,
pub language: String,
pub file: String,
pub line: u32,
pub parent: Option<String>,
}Expand description
A definition extracted from source.
Every language plugin emits this same shape; the core never sees a
language-specific concept. parent records lexical nesting only
(e.g. Foo::Bar#baz) — it is not reference tracking or inheritance.
Fields§
§name: StringThe defined name, e.g. RefundProcessor, perform.
kind: Kind§language: StringLanguage tag, e.g. ruby.
file: StringRepository-relative path.
line: u321-based line of the definition.
parent: Option<String>Enclosing symbol name, if any (lexical nesting only).
Trait Implementations§
impl Eq for Symbol
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 UnsafeUnpin 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