pub struct ModuleTable {
pub modules: HashMap<String, Option<ModuleFuncs>>,
}Expand description
Parse-time function provenance: module name to surface. A None entry
marks an opaque module (declared but membership unknown, e.g. the
oxdock! macro’s modules: prefix): qualified calls pass through for
runtime checking, and a lone opaque import determines bare-call targets.
Fields§
§modules: HashMap<String, Option<ModuleFuncs>>Implementations§
Source§impl ModuleTable
impl ModuleTable
Sourcepub fn reserved_base_names(&self) -> HashSet<String>
pub fn reserved_base_names(&self) -> HashSet<String>
Base names exported by every known (non-opaque) module. Backs the
FUNC shadow check: a script definition colliding with any of these
fails at parse time, exactly like the old flat reserved set.
Trait Implementations§
Source§impl Clone for ModuleTable
impl Clone for ModuleTable
Source§fn clone(&self) -> ModuleTable
fn clone(&self) -> ModuleTable
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 ModuleTable
impl Debug for ModuleTable
Source§impl Default for ModuleTable
impl Default for ModuleTable
Source§fn default() -> ModuleTable
fn default() -> ModuleTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleTable
impl RefUnwindSafe for ModuleTable
impl Send for ModuleTable
impl Sync for ModuleTable
impl Unpin for ModuleTable
impl UnsafeUnpin for ModuleTable
impl UnwindSafe for ModuleTable
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