pub struct SymbolInfo {
pub entity_id: i64,
pub name: String,
pub file_path: String,
pub kind: String,
pub byte_start: usize,
pub byte_end: usize,
pub start_line: Option<usize>,
pub end_line: Option<usize>,
}Expand description
Symbol information extracted from Magellan’s SymbolQueryResult.
Fields§
§entity_id: i64Entity ID in the graph database.
name: StringSymbol name.
file_path: StringFile path containing the symbol.
kind: StringSymbol kind (e.g., “fn”, “struct”, “class”).
byte_start: usizeByte offset where the symbol starts.
byte_end: usizeByte offset where the symbol ends.
start_line: Option<usize>Line number where the symbol starts (1-indexed).
end_line: Option<usize>Line number where the symbol ends (1-indexed).
Trait Implementations§
Source§impl Clone for SymbolInfo
impl Clone for SymbolInfo
Source§fn clone(&self) -> SymbolInfo
fn clone(&self) -> SymbolInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SymbolInfo
impl Debug for SymbolInfo
Source§impl From<SymbolInfo> for MagellanSymbol
impl From<SymbolInfo> for MagellanSymbol
Source§fn from(info: SymbolInfo) -> Self
fn from(info: SymbolInfo) -> Self
Converts to this type from the input type.
Source§impl From<SymbolInfo> for SymbolSpan
impl From<SymbolInfo> for SymbolSpan
Source§fn from(info: SymbolInfo) -> Self
fn from(info: SymbolInfo) -> Self
Converts to this type from the input type.
Source§impl From<SymbolQueryResult> for SymbolInfo
impl From<SymbolQueryResult> for SymbolInfo
Source§fn from(result: SymbolQueryResult) -> Self
fn from(result: SymbolQueryResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SymbolInfo
impl RefUnwindSafe for SymbolInfo
impl Send for SymbolInfo
impl Sync for SymbolInfo
impl Unpin for SymbolInfo
impl UnsafeUnpin for SymbolInfo
impl UnwindSafe for SymbolInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more