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, ValType};
let mut tables = TableSection::new();
tables.table(TableType {
element_type: ValType::FuncRef,
minimum: 128,
maximum: None,
});
let mut module = Module::new();
module.section(&tables);
let wasm_bytes = module.finish();
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TableSection
impl Send for TableSection
impl Sync for TableSection
impl Unpin for TableSection
impl UnwindSafe for TableSection
Blanket Implementations
Mutably borrows from an owned value. Read more