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
Auto Trait Implementations
impl RefUnwindSafe for ModuleSectionimpl Send for ModuleSectionimpl Sync for ModuleSectionimpl Unpin for ModuleSectionimpl UnwindSafe for ModuleSectionBlanket Implementations
Mutably borrows from an owned value. Read more