pub struct RepeatCont {
pub count: u64,
pub body: RcCont,
pub after: RcCont,
}
Expand description
Continuation that takes an integer n
and a continuation c
,
and executes c
n
times.
Fields§
§count: u64
§body: RcCont
§after: RcCont
Trait Implementations§
Source§impl Clone for RepeatCont
impl Clone for RepeatCont
Source§fn clone(&self) -> RepeatCont
fn clone(&self) -> RepeatCont
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Cont for RepeatCont
impl Cont for RepeatCont
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 Debug for RepeatCont
impl Debug for RepeatCont
Source§impl Load<'_> for RepeatCont
impl Load<'_> for RepeatCont
Source§impl Store for RepeatCont
impl Store for RepeatCont
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 RepeatCont
impl !RefUnwindSafe for RepeatCont
impl !Send for RepeatCont
impl !Sync for RepeatCont
impl Unpin for RepeatCont
impl !UnwindSafe for RepeatCont
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