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}; let mut imports = ImportSection::new(); imports.import( "env", Some("memory"), MemoryType { minimum: 1, maximum: None, memory64: false, } ); let mut module = Module::new(); module.section(&imports); let wasm_bytes = module.finish();
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImportSection
impl Send for ImportSection
impl Sync for ImportSection
impl Unpin for ImportSection
impl UnwindSafe for ImportSection
Blanket Implementations
Mutably borrows from an owned value. Read more