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
.