pub struct StdlibRegistry { /* private fields */ }Expand description
Registry mapping (module, function) → function signature.
Implementations§
Source§impl StdlibRegistry
impl StdlibRegistry
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new registry with all 100 Phase 0 stdlib functions + 2 constants.
Sourcepub fn get(&self, module: &str, function: &str) -> Option<&FnSig>
pub fn get(&self, module: &str, function: &str) -> Option<&FnSig>
Look up a function signature by module and function name.
Sourcepub fn has_module(&self, module: &str) -> bool
pub fn has_module(&self, module: &str) -> bool
Check if a module exists.
Sourcepub fn get_constant(&self, module: &str, name: &str) -> Option<&Type>
pub fn get_constant(&self, module: &str, name: &str) -> Option<&Type>
Look up a constant by module and name.
Trait Implementations§
Source§impl Debug for StdlibRegistry
impl Debug for StdlibRegistry
Auto Trait Implementations§
impl Freeze for StdlibRegistry
impl RefUnwindSafe for StdlibRegistry
impl Send for StdlibRegistry
impl Sync for StdlibRegistry
impl Unpin for StdlibRegistry
impl UnwindSafe for StdlibRegistry
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