[][src]Struct wasm_gen::WasmCodeGen

pub struct WasmCodeGen { /* fields omitted */ }

Implementations

impl WasmCodeGen[src]

pub fn new() -> WasmCodeGen[src]

pub fn to_bytes(&self) -> Vec<u8>[src]

pub fn set_name(&mut self, idx: usize, name: String)[src]

pub fn add_type(&mut self, t: FuncType) -> usize[src]

pub fn add_export(&mut self, name: String, idx: usize, export_type: ExportType)[src]

pub fn add_func(&mut self, f: Func) -> usize[src]

pub fn add_func_with_type(&mut self, f: Func, t: u32) -> usize[src]

pub fn replace_code_func(&mut self, idx: usize, code: Vec<FuncCode>)[src]

pub fn add_table(
    &mut self,
    elemtype: TableElemType,
    min: u32,
    max: u32
) -> usize
[src]

pub fn add_element(&mut self, table: u32, offset: u32, funcs: Vec<u32>) -> usize[src]

pub fn add_memory(&mut self, min: u32, max: u32) -> usize[src]

pub fn add_data(&mut self, offset: u32, bytes: Vec<u8>) -> u32[src]

pub fn add_import(
    &mut self,
    module: String,
    name: String,
    import_type: ImportType,
    typeidx: usize
) -> usize
[src]

pub fn add_mutable_global(&mut self, valtype: u8, init: u32) -> usize[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.