Struct wasm_encoder::TableSection 
source · [−]pub struct TableSection { /* private fields */ }Expand description
An encoder for the table section.
Table sections are only supported for modules.
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
sourceimpl TableSection
 
impl TableSection
Trait Implementations
sourceimpl Clone for TableSection
 
impl Clone for TableSection
sourcefn clone(&self) -> TableSection
 
fn clone(&self) -> TableSection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TableSection
 
impl Debug for TableSection
sourceimpl Default for TableSection
 
impl Default for TableSection
sourcefn default() -> TableSection
 
fn default() -> TableSection
Returns the “default value” for a type. Read more
sourceimpl Encode for TableSection
 
impl Encode for TableSection
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more