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

Fields

step_function: RantFunctionHandle
temporal_state: TemporalSpreadState
args: Vec<RantValue>

Temporal step function is ready to iterate.

Transitions to PostTemporalCall.

PreCall

Fields

step_function: RantFunctionHandle
args: Vec<RantValue>

Step function is ready to call.

Transitions to PostCall.

PostCall

Step function has returned and output can be used.

PostTemporalCall

Fields

step_function: RantFunctionHandle
temporal_state: TemporalSpreadState
args: Vec<RantValue>

Temporal step function has iterated and output can be used.

Might transition to PreTemporalCall.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.