Struct wasm_core::module::Module
[−]
[src]
pub struct Module {
pub types: Vec<Type>,
pub functions: Vec<Function>,
pub data_segments: Vec<DataSegment>,
pub exports: BTreeMap<String, Export>,
pub tables: Vec<Table>,
pub globals: Vec<Global>,
pub natives: Vec<Native>,
pub start_function: Option<u32>,
}Fields
types: Vec<Type>
functions: Vec<Function>
data_segments: Vec<DataSegment>
exports: BTreeMap<String, Export>
tables: Vec<Table>
globals: Vec<Global>
natives: Vec<Native>
start_function: Option<u32>
Methods
impl Module[src]
pub fn execute(
&self,
rt_config: RuntimeConfig,
initial_func: usize
) -> ExecuteResult<Option<Value>>[src]
&self,
rt_config: RuntimeConfig,
initial_func: usize
) -> ExecuteResult<Option<Value>>
impl Module[src]
pub fn std_serialize(&self) -> Result<Vec<u8>, String>[src]
pub fn std_deserialize(data: &[u8]) -> Result<Module, String>[src]
pub fn lookup_exported_func(&self, name: &str) -> Option<usize>[src]
Trait Implementations
impl Clone for Module[src]
fn clone(&self) -> Module[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Module[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more