Struct s1vm::State [−][src]
pub struct State { /* fields omitted */ }
VM State - Immutable, only changes when loading a module.
Implementations
impl State
[src]
impl State
[src]pub fn new() -> State
[src]
pub fn load_file(
&mut self,
name: &str,
file: &str
) -> Result<ModuleInstanceAddr>
[src]
&mut self,
name: &str,
file: &str
) -> Result<ModuleInstanceAddr>
pub fn get_function(&self, addr: FuncAddr) -> Trap<&Function>
[src]
pub fn get_exported(&self, module: &str, name: &str) -> Result<FuncAddr>
[src]
pub fn invoke_function(
&self,
store: &mut Store,
func_addr: FuncAddr
) -> Trap<Option<StackValue>>
[src]
&self,
store: &mut Store,
func_addr: FuncAddr
) -> Trap<Option<StackValue>>
pub fn call(
&self,
store: &mut Store,
func_addr: FuncAddr,
params: &[Value]
) -> Result<RetValue>
[src]
&self,
store: &mut Store,
func_addr: FuncAddr,
params: &[Value]
) -> Result<RetValue>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for State
impl !RefUnwindSafe for State
impl !UnwindSafe for State
impl !UnwindSafe for State