pub struct AgainCont {
pub body: RcCont,
}
Expand description
Continuation that executes its body infinitely many times.
A RET
only begins a new iteration of the infinite loop, which can
be exited only by an exception, or a RETALT
(or an explicit JMPX
).
Fields§
§body: RcCont
Trait Implementations§
Source§impl Cont for AgainCont
impl Cont for AgainCont
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<'_>, _: &mut i32, ) -> VmResult<Option<RcCont>>
fn get_control_data(&self) -> Option<&ControlData>
fn get_control_data_mut(&mut self) -> Option<&mut ControlData>
Source§impl Store for AgainCont
impl Store for AgainCont
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
Auto Trait Implementations§
impl Freeze for AgainCont
impl !RefUnwindSafe for AgainCont
impl !Send for AgainCont
impl !Sync for AgainCont
impl Unpin for AgainCont
impl !UnwindSafe for AgainCont
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more