Lines Matching refs:Box

37 ) -> Option<Box<wasm_module_t>> {  in wasm_module_new()
39 Ok(module) => Some(Box::new(wasm_module_t::new(module))), in wasm_module_new()
57 Some(Box::new(wasm_exporttype_t::new( in fill_exports()
70 Some(Box::new(wasm_importtype_t::new( in fill_imports()
91 pub extern "C" fn wasm_module_share(module: &wasm_module_t) -> Box<wasm_shared_module_t> { in wasm_module_share()
92 Box::new(wasm_shared_module_t { in wasm_module_share()
101 ) -> Option<Box<wasm_module_t>> { in wasm_module_obtain()
104 Some(Box::new(wasm_module_t::new(module))) in wasm_module_obtain()
122 ) -> Option<Box<wasm_module_t>> { in wasm_module_deserialize()
124 Ok(module) => Some(Box::new(wasm_module_t::new(module))), in wasm_module_deserialize()
143 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_module_new()
147 *out = Box::into_raw(Box::new(wasmtime_module_t { module })); in wasmtime_module_new()
153 pub extern "C" fn wasmtime_module_clone(module: &wasmtime_module_t) -> Box<wasmtime_module_t> { in wasmtime_module_clone()
154 Box::new(module.clone()) in wasmtime_module_clone()
179 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_module_validate()
189 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_module_serialize()
210 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_module_deserialize()
213 *out = Box::into_raw(Box::new(wasmtime_module_t { module })); in wasmtime_module_deserialize()
222 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_module_deserialize_file()
229 *out = Box::into_raw(Box::new(wasmtime_module_t { module })); in wasmtime_module_deserialize_file()