pub struct Symbol {
pub name: String,
pub qualified_name: String,
pub kind: SymbolKind,
pub full_range: Range<usize>,
pub body_range: Option<Range<usize>>,
}Expand description
Represents an extracted symbol from the AST.
Fields§
§name: StringThe local name of the symbol
qualified_name: StringThe qualified name (e.g., “MyClass.my_method”)
kind: SymbolKindThe kind of the symbol
full_range: Range<usize>The byte range of the entire definition (signature + body)
body_range: Option<Range<usize>>The byte range of the body. This is the part that will be elided with ...
Trait Implementations§
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