Helper that defines a section in the module and takes ownership of it so that it is dropped and its memory reclaimed after adding it to the module.
(module: &mut wasm_encoder::Module, section: impl wasm_encoder::Section)
| 397 | // so that it is dropped and its memory reclaimed after adding it to the |
| 398 | // module. |
| 399 | fn section(module: &mut wasm_encoder::Module, section: impl wasm_encoder::Section) { |
| 400 | module.section(§ion); |
| 401 | } |
| 402 | |
| 403 | // Helper that defines a function body in the code section and takes |
| 404 | // ownership of it so that it is dropped and its memory reclaimed after |
no outgoing calls