pub struct Registry(BTreeMap<ImportKey, ExternVal>);
Tuple Fields§
§0: BTreeMap<ImportKey, ExternVal>
Implementations§
Source§impl Registry
impl Registry
pub fn register( &mut self, module_name: Cow<'static, str>, name: Cow<'static, str>, extern_val: ExternVal, ) -> Result<(), Error>
pub fn lookup( &self, module_name: Cow<'static, str>, name: Cow<'static, str>, ) -> Result<&ExternVal, Error>
pub fn register_module( &mut self, module_name: Cow<'static, str>, module_inst: &ModuleInst<'_>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
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