pub struct ForeachStepIR {
pub kind: ForeachKind,
pub base: StepBase,
pub items: Expr,
pub as: Identifier,
pub body: Vec<StepIR>,
}Expand description
Foreach step (02 §4.6): iteration container. The iteration variable is
referenced via iter.<as>; RunPath disambiguates rounds with
{ kind: "iteration", index } frames, so body stepIds do not (and must
not) vary per round.
Fields§
§kind: ForeachKindConst "foreach".
base: StepBaseCommon step envelope (flattened on the wire).
items: ExprThe collection expression.
as: IdentifierIteration variable name (scoped as iter.<as>).
body: Vec<StepIR>Loop body (≥ 1 step).
Trait Implementations§
Source§impl Clone for ForeachStepIR
impl Clone for ForeachStepIR
Source§fn clone(&self) -> ForeachStepIR
fn clone(&self) -> ForeachStepIR
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForeachStepIR
impl Debug for ForeachStepIR
Source§impl<'de> Deserialize<'de> for ForeachStepIR
impl<'de> Deserialize<'de> for ForeachStepIR
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ForeachStepIR
impl JsonSchema for ForeachStepIR
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ForeachStepIR
impl PartialEq for ForeachStepIR
Source§impl Serialize for ForeachStepIR
impl Serialize for ForeachStepIR
impl StructuralPartialEq for ForeachStepIR
Auto Trait Implementations§
impl Freeze for ForeachStepIR
impl RefUnwindSafe for ForeachStepIR
impl Send for ForeachStepIR
impl Sync for ForeachStepIR
impl Unpin for ForeachStepIR
impl UnsafeUnpin for ForeachStepIR
impl UnwindSafe for ForeachStepIR
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