pub enum RawStep {
Call(RawCall),
Branch(Vec<(String, Vec<RawStep>)>),
Loop(String, Vec<RawStep>),
Optional(String, Vec<RawStep>),
Parallel(Vec<(String, Vec<RawStep>)>),
Return(String, u32),
}Expand description
One step of an unresolved flow.
Variants§
Call(RawCall)
A call.
Branch(Vec<(String, Vec<RawStep>)>)
Alternatives (if/else, match): (label, steps) per arm. Empty
arms are kept so that lower can describe the arm that
survives resolution.
Loop(String, Vec<RawStep>)
A loop with its label and body.
Optional(String, Vec<RawStep>)
A body that may or may not run, with its label.
Parallel(Vec<(String, Vec<RawStep>)>)
Concurrent arms (spawned tasks): (label, steps) per arm.
Return(String, u32)
An early exit: label and 1-based line.
Trait Implementations§
impl Eq for RawStep
impl StructuralPartialEq for RawStep
Auto Trait Implementations§
impl Freeze for RawStep
impl RefUnwindSafe for RawStep
impl Send for RawStep
impl Sync for RawStep
impl Unpin for RawStep
impl UnsafeUnpin for RawStep
impl UnwindSafe for RawStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more