Struct wasm_encoder::ModuleSection [−][src]
pub struct ModuleSection { /* fields omitted */ }
Expand description
An encoder for the module section.
Note that this is part of the module linking proposal and is not currently part of stable WebAssembly.
Example
use wasm_encoder::{ModuleSection, Module};
let mut modules = ModuleSection::new();
modules.module(&Module::new());
modules.module(&Module::new());
let mut module = Module::new();
module.section(&modules);
let wasm_bytes = module.finish();
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ModuleSection
impl Send for ModuleSection
impl Sync for ModuleSection
impl Unpin for ModuleSection
impl UnwindSafe for ModuleSection
Blanket Implementations
Mutably borrows from an owned value. Read more