(memory: Option<Memory>, alloc: Option<Func>, dealloc: Option<Func>)
| 46 | } |
| 47 | |
| 48 | fn from(memory: Option<Memory>, alloc: Option<Func>, dealloc: Option<Func>) -> Option<Self> { |
| 49 | Some(Self { |
| 50 | memory: memory?, |
| 51 | alloc: alloc?, |
| 52 | dealloc: dealloc?, |
| 53 | }) |
| 54 | } |
| 55 | |
| 56 | /// Safety, the returned array is uninitialized |
| 57 | #[allow(clippy::mut_from_ref)] |
nothing calls this directly
no outgoing calls
no test coverage detected