MCPcopy Create free account
hub / github.com/bluejekyll/wasmtime-java / from

Method from

wasmtime-jni/src/ty/wasm_alloc.rs:48–54  ·  view source on GitHub ↗
(memory: Option<Memory>, alloc: Option<Func>, dealloc: Option<Func>)

Source from the content-addressed store, hash-verified

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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected