pub trait Cont:
Store
+ SafeDelete
+ DynClone
+ Debug {
// Required methods
fn rc_into_dyn(self: Rc<Self>) -> Rc<dyn StackValue>;
fn as_stack_value(&self) -> &dyn StackValue;
fn fmt(&self, f: &mut Formatter<'_>) -> Result;
fn jump(
self: Rc<Self>,
state: &mut VmState<'_>,
exit_code: &mut i32,
) -> VmResult<Option<RcCont>>;
// Provided methods
fn get_control_data(&self) -> Option<&ControlData> { ... }
fn get_control_data_mut(&mut self) -> Option<&mut ControlData> { ... }
}
Expand description
Continuation interface.