Struct wasm_encoder::ImportSection [−][src]
pub struct ImportSection { /* fields omitted */ }Expand description
An encoder for the import section.
Example
use wasm_encoder::{Module, ImportSection, MemoryType, Limits}; let mut imports = ImportSection::new(); imports.import( "env", Some("memory"), MemoryType { limits: Limits { min: 1, max: None, } } ); let mut module = Module::new(); module.section(&imports); let wasm_bytes = module.finish();
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImportSectionimpl Send for ImportSectionimpl Sync for ImportSectionimpl Unpin for ImportSectionimpl UnwindSafe for ImportSectionBlanket Implementations
Mutably borrows from an owned value. Read more