(instance: &Instance, mut store: impl AsContextMut)
| 38 | } |
| 39 | |
| 40 | pub fn from_instance(instance: &Instance, mut store: impl AsContextMut) -> Option<Self> { |
| 41 | Self::from( |
| 42 | instance.get_memory(&mut store, MEMORY_EXPORT), |
| 43 | instance.get_func(&mut store, ALLOC_EXPORT), |
| 44 | instance.get_func(&mut store, DEALLOC_EXPORT), |
| 45 | ) |
| 46 | } |
| 47 | |
| 48 | fn from(memory: Option<Memory>, alloc: Option<Func>, dealloc: Option<Func>) -> Option<Self> { |
| 49 | Some(Self { |
nothing calls this directly
no outgoing calls
no test coverage detected