Struct wasm_encoder::ExportSection [−][src]
pub struct ExportSection { /* fields omitted */ }
Expand description
An encoder for the export section.
Example
use wasm_encoder::{
Export, ExportSection, TableSection, TableType, Module, ValType,
};
let mut tables = TableSection::new();
tables.table(TableType {
element_type: ValType::FuncRef,
minimum: 128,
maximum: None,
});
let mut exports = ExportSection::new();
exports.export("my-table", Export::Table(0));
let mut module = Module::new();
module
.section(&tables)
.section(&exports);
let wasm_bytes = module.finish();
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExportSection
impl Send for ExportSection
impl Sync for ExportSection
impl Unpin for ExportSection
impl UnwindSafe for ExportSection
Blanket Implementations
Mutably borrows from an owned value. Read more