Enum rant::runtime::InvokePipeStepState
source · [−]pub enum InvokePipeStepState {
EvaluatingFunc,
EvaluatingArgs {
num_evaluated: usize,
},
PreTemporalCall {
step_function: RantFunctionHandle,
temporal_state: TemporalSpreadState,
args: Vec<RantValue>,
},
PreCall {
step_function: RantFunctionHandle,
args: Vec<RantValue>,
},
PostCall,
PostTemporalCall {
step_function: RantFunctionHandle,
temporal_state: TemporalSpreadState,
args: Vec<RantValue>,
},
}
Expand description
States for the InvokePipeStep
intent.
Variants
EvaluatingFunc
Evaluate step function and leave it on the value stack.
Transitions to EvaluatingArgs
.
EvaluatingArgs
Fields
num_evaluated: usize
Number of arguments that have already been evaluated.
Evaluate argument expressions, then pop them off the value stack. Then, before transitioning, pop the function off the value stack and store it.
Transitions to PreCall
or PreTemporalCall
.
PreTemporalCall
Temporal step function is ready to iterate.
Transitions to PostTemporalCall
.
PreCall
Step function is ready to call.
Transitions to PostCall
.
PostCall
Step function has returned and output can be used.
PostTemporalCall
Temporal step function has iterated and output can be used.
Might transition to PreTemporalCall
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for InvokePipeStepState
impl !Send for InvokePipeStepState
impl !Sync for InvokePipeStepState
impl Unpin for InvokePipeStepState
impl !UnwindSafe for InvokePipeStepState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more