pub struct Symbol {
pub name: String,
pub kind: Kind,
pub language: String,
pub file: String,
pub line: u32,
pub end_line: u32,
pub parent: Option<String>,
pub visibility: Option<&'static str>,
}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.
end_line: u321-based last line of the definition’s body — with line, the span to
read to see the whole definition. Equals line for a one-line symbol.
parent: Option<String>Enclosing symbol name, if any (lexical nesting only).
visibility: Option<&'static str>Access level when the language expresses one: public, crate,
private, or protected. None when unknown. A ranking hint (private
helpers sit below public API), never a filter.
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