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, Limits, Module, ValType, }; let mut tables = TableSection::new(); tables.table(TableType { element_type: ValType::FuncRef, limits: Limits { min: 128, max: 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 ExportSectionimpl Send for ExportSectionimpl Sync for ExportSectionimpl Unpin for ExportSectionimpl UnwindSafe for ExportSectionBlanket Implementations
Mutably borrows from an owned value. Read more