Struct wasm_encoder::TableSection [−][src]
pub struct TableSection { /* fields omitted */ }Expand description
An encoder for the table section.
Example
use wasm_encoder::{Module, TableSection, TableType, Limits, ValType}; let mut tables = TableSection::new(); tables.table(TableType { element_type: ValType::FuncRef, limits: Limits { min: 128, max: None, }, }); let mut module = Module::new(); module.section(&tables); let wasm_bytes = module.finish();
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TableSectionimpl Send for TableSectionimpl Sync for TableSectionimpl Unpin for TableSectionimpl UnwindSafe for TableSectionBlanket Implementations
Mutably borrows from an owned value. Read more