pub struct SymbolFact {Show 13 fields
pub file_path: PathBuf,
pub kind: SymbolKind,
pub kind_normalized: String,
pub name: Option<String>,
pub fqn: Option<String>,
pub canonical_fqn: Option<String>,
pub display_fqn: Option<String>,
pub byte_start: usize,
pub byte_end: usize,
pub start_line: usize,
pub start_col: usize,
pub end_line: usize,
pub end_col: usize,
}Expand description
A fact about a symbol extracted from source code
Pure data structure. No behavior. No semantic analysis.
Fields§
§file_path: PathBufFile containing this symbol
kind: SymbolKindKind of symbol
kind_normalized: StringCanonical kind string (fn/struct/enum/…) derived during ingest
name: Option<String>Symbol name (if any - some symbols like impl blocks may not have names)
fqn: Option<String>Fully-qualified name for stable symbol_id generation
For v1, this is set to the simple symbol name for top-level symbols. Future versions will build proper hierarchical FQN (e.g., “module::Struct::method”).
canonical_fqn: Option<String>Canonical fully-qualified name with file path for unambiguous identity
display_fqn: Option<String>Display fully-qualified name for human-readable output
byte_start: usizeByte offset where symbol starts in file
byte_end: usizeByte offset where symbol ends in file
start_line: usizeLine where symbol starts (1-indexed)
start_col: usizeColumn where symbol starts (0-indexed, bytes)
end_line: usizeLine where symbol ends (1-indexed)
end_col: usizeColumn where symbol ends (0-indexed, bytes)
Trait Implementations§
Source§impl Clone for SymbolFact
impl Clone for SymbolFact
Source§fn clone(&self) -> SymbolFact
fn clone(&self) -> SymbolFact
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SymbolFact
impl Debug for SymbolFact
Source§impl<'de> Deserialize<'de> for SymbolFact
impl<'de> Deserialize<'de> for SymbolFact
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>,
Source§impl PartialEq for SymbolFact
impl PartialEq for SymbolFact
Source§impl Serialize for SymbolFact
impl Serialize for SymbolFact
impl Eq for SymbolFact
impl StructuralPartialEq for SymbolFact
Auto Trait Implementations§
impl Freeze for SymbolFact
impl RefUnwindSafe for SymbolFact
impl Send for SymbolFact
impl Sync for SymbolFact
impl Unpin for SymbolFact
impl UnsafeUnpin for SymbolFact
impl UnwindSafe for SymbolFact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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