(&self)
| 1536 | } |
| 1537 | |
| 1538 | pub(crate) fn needs_startup(&self) -> bool { |
| 1539 | match self.env_module().startup { |
| 1540 | ModuleStartup::None => false, |
| 1541 | ModuleStartup::Always(_) => true, |
| 1542 | ModuleStartup::IfMemoriesNeedInit(_) => self |
| 1543 | .memories |
| 1544 | .iter() |
| 1545 | .any(|(_, (_, memory))| memory.needs_init()), |
| 1546 | } |
| 1547 | } |
| 1548 | } |
| 1549 | |
| 1550 | // SAFETY: `layout` should describe this accurately and `OwnedVMContext` is the |
no test coverage detected