pub struct Symbol {
pub name: String,
pub kind: SymbolKind,
pub start_line: usize,
pub end_line: usize,
}Expand description
A defined symbol with its in-file location (1-based line numbers).
Path-agnostic (ADR 0012): a symbol carries no file path, so the same
file content produces byte-identical slices regardless of where it lives,
and content-addressed storage dedups them across paths/worktrees. The path
is supplied at assembly from the manifest — see Located.
Fields§
§name: String§kind: SymbolKind§start_line: usize§end_line: usizeTrait 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 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