pub struct SymbolTable { /* private fields */ }Expand description
A global symbol table for resolving cross-file references.
Maps Fully Qualified Names (FQNs) to Node IDs. Example FQN: “arbor::graph::SymbolTable” -> NodeId(42)
Implementations§
Source§impl SymbolTable
impl SymbolTable
Sourcepub fn insert(&mut self, fqn: String, id: NodeId, file: PathBuf)
pub fn insert(&mut self, fqn: String, id: NodeId, file: PathBuf)
Registers a symbol in the table.
fqn- Fully Qualified Name (e.g., “pkg.module.function”)id- The Node ID in the graphfile- The file path defining this symbol
Sourcepub fn resolve(&self, fqn: &str) -> Option<NodeId>
pub fn resolve(&self, fqn: &str) -> Option<NodeId>
Resolves a Fully Qualified Name to a Node ID.
Trait Implementations§
Source§impl Clone for SymbolTable
impl Clone for SymbolTable
Source§fn clone(&self) -> SymbolTable
fn clone(&self) -> SymbolTable
Returns a duplicate of the value. Read more
1.0.0 · 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 SymbolTable
impl Debug for SymbolTable
Source§impl Default for SymbolTable
impl Default for SymbolTable
Source§fn default() -> SymbolTable
fn default() -> SymbolTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SymbolTable
impl RefUnwindSafe for SymbolTable
impl Send for SymbolTable
impl Sync for SymbolTable
impl Unpin for SymbolTable
impl UnwindSafe for SymbolTable
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