pub struct SymbolRegistry {
pub entries: Vec<SymbolEntry>,
}Expand description
All symbols exported by a module tree — canonical source of truth.
Fields§
§entries: Vec<SymbolEntry>Implementations§
Source§impl SymbolRegistry
impl SymbolRegistry
Sourcepub fn from_modules(modules: &[(String, Vec<TopLevel>)]) -> Self
pub fn from_modules(modules: &[(String, Vec<TopLevel>)]) -> Self
Build a registry of exported symbols from a set of loaded modules.
Sourcepub fn from_modules_all(modules: &[(String, Vec<TopLevel>)]) -> Self
pub fn from_modules_all(modules: &[(String, Vec<TopLevel>)]) -> Self
Build a registry of ALL symbols (including private) from loaded modules. Used by codegen which emits full module implementations.
Trait Implementations§
Source§impl Clone for SymbolRegistry
impl Clone for SymbolRegistry
Source§fn clone(&self) -> SymbolRegistry
fn clone(&self) -> SymbolRegistry
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 SymbolRegistry
impl Debug for SymbolRegistry
Source§impl Default for SymbolRegistry
impl Default for SymbolRegistry
Source§fn default() -> SymbolRegistry
fn default() -> SymbolRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SymbolRegistry
impl RefUnwindSafe for SymbolRegistry
impl Send for SymbolRegistry
impl Sync for SymbolRegistry
impl Unpin for SymbolRegistry
impl UnsafeUnpin for SymbolRegistry
impl UnwindSafe for SymbolRegistry
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