Find the StoreCode in a given store for a module and wrap it up with that module, ready to compute code pointers.
(
registry: &'a ModuleRegistry,
module: &'a Module,
)
| 412 | /// Find the StoreCode in a given store for a module and wrap it |
| 413 | /// up with that module, ready to compute code pointers. |
| 414 | pub fn in_store( |
| 415 | registry: &'a ModuleRegistry, |
| 416 | module: &'a Module, |
| 417 | ) -> Option<ModuleWithCode<'a>> { |
| 418 | let store_code = registry.store_code(module.engine_code())?; |
| 419 | Some(ModuleWithCode { module, store_code }) |
| 420 | } |
| 421 | |
| 422 | pub(crate) fn from_raw(module: &'a Module, store_code: &'a StoreCode) -> ModuleWithCode<'a> { |
| 423 | ModuleWithCode { module, store_code } |
nothing calls this directly
no test coverage detected