Trait ceres_executor::derive::Instance [−][src]
pub trait Instance<T>: Sized { type Builder: Builder<T>; fn new(code: &[u8], builder: &Self::Builder, state: &mut T) -> Result<Self>; fn invoke(
&mut self,
name: &str,
args: &[Value],
state: &mut T
) -> Result<Value>; fn get_global_val(&self, name: &str) -> Option<Value>; }
Expand description
Ceres executor instance
Associated Types
Required methods
Instantiate a module with the given env builder
invoke an exported function
fn get_global_val(&self, name: &str) -> Option<Value>
fn get_global_val(&self, name: &str) -> Option<Value>
Get global value