Struct wasm_encoder::adapter::ModuleSection [−][src]
pub struct ModuleSection { /* fields omitted */ }
Expand description
An encoder for the adapter module module
section.
Example
use wasm_encoder::{Module, adapter::{AdapterModule, ModuleSection}};
let mut modules = ModuleSection::new();
modules.module(&Module::new());
modules.adapter(&AdapterModule::new());
let mut module = AdapterModule::new();
module.section(&modules);
let bytes = module.finish();
Implementations
Writes a module into this module section.
Writes an adapter module into this module section.
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