Struct stainless_script::ExecutionContext
source · pub struct ExecutionContext<'a> { /* private fields */ }Expand description
Context for nodes. Nodes get their inputs, set their ouputs, redirect to subroutine and other through this context.
Implementations§
source§impl<'a> ExecutionContext<'a>
impl<'a> ExecutionContext<'a>
sourcepub fn execute_subroutine(
&mut self,
start: AbsoluteNodeId,
input_values: Vec<Rc<dyn Object>>
)
pub fn execute_subroutine(
&mut self,
start: AbsoluteNodeId,
input_values: Vec<Rc<dyn Object>>
)
Redirect execution to a subroutine. Returns whatever end node receives.
sourcepub fn finish_subroutine(&mut self, return_values: Vec<Rc<dyn Object>>)
pub fn finish_subroutine(&mut self, return_values: Vec<Rc<dyn Object>>)
Finish executing subroutine, return to caller.