pub struct SymbolEntry {
pub name: String,
pub kind: SymbolKindTag,
pub container_path: Vec<String>,
pub semantic_hash: ContentHash,
pub span: (u32, u32),
}Expand description
One symbol defined in a source file.
Fields§
§name: StringBare symbol name as it appears in the AST.
kind: SymbolKindTagCoarse classification.
container_path: Vec<String>Enclosing scope path (impl block, class, module, …), outermost first.
semantic_hash: ContentHashNormalization-stable fingerprint of the symbol’s definition — a pure
function of (bytes, grammar, extractor_version) that is invariant
under reformatting and comment edits. See compute_symbol_semantic_hash.
span: (u32, u32)(start_line, end_line), 1-indexed inclusive. PROVENANCE ONLY — the
span is deliberately excluded from every digest so a reformat that moves
the symbol leaves the fingerprint stable.
Implementations§
Trait Implementations§
Source§impl Clone for SymbolEntry
impl Clone for SymbolEntry
Source§fn clone(&self) -> SymbolEntry
fn clone(&self) -> SymbolEntry
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 SymbolEntry
impl Debug for SymbolEntry
Source§impl<'de> Deserialize<'de> for SymbolEntry
impl<'de> Deserialize<'de> for SymbolEntry
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 SymbolEntry
Source§impl PartialEq for SymbolEntry
impl PartialEq for SymbolEntry
Source§impl Serialize for SymbolEntry
impl Serialize for SymbolEntry
impl StructuralPartialEq for SymbolEntry
Auto Trait Implementations§
impl Freeze for SymbolEntry
impl RefUnwindSafe for SymbolEntry
impl Send for SymbolEntry
impl Sync for SymbolEntry
impl Unpin for SymbolEntry
impl UnsafeUnpin for SymbolEntry
impl UnwindSafe for SymbolEntry
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