pub struct WhileCont {
pub check_cond: bool,
pub cond: RcCont,
pub body: RcCont,
pub after: RcCont,
}
Expand description
Continuation of a loop with precondition.
Fields§
§check_cond: bool
§cond: RcCont
§body: RcCont
§after: RcCont
Trait Implementations§
Source§impl Cont for WhileCont
impl Cont for WhileCont
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 WhileCont
impl Store for WhileCont
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 WhileCont
impl !RefUnwindSafe for WhileCont
impl !Send for WhileCont
impl !Sync for WhileCont
impl Unpin for WhileCont
impl !UnwindSafe for WhileCont
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