pub enum Statement {
Alias {
name: String,
dest: String,
qualifiers: Vec<Qualifier>,
statements: Vec<Statement>,
},
Assignment {
name: String,
qualifiers: Vec<Qualifier>,
expr: Expression,
},
Compound {
statements: Vec<Statement>,
},
If {
condition: Expression,
then_branch: Vec<Statement>,
else_branch: Option<Vec<Statement>>,
},
Case {
selector: Expression,
actions: Vec<(Vec<Expression>, Statement)>,
otherwise: Option<Box<Statement>>,
},
Repeat {
control: RepeatControl,
statements: Vec<Statement>,
},
Return {
value: Option<Expression>,
},
ProcedureCall {
procedure: ProcedureCallName,
parameters: Option<Vec<Expression>>,
},
Skip,
Escape,
Null,
}
Variants
Alias
Assignment
Compound
If
Case
Fields
selector: Expression
Repeat
Return
Fields
value: Option<Expression>
ProcedureCall
Skip
Escape
Null
Trait Implementations
impl StructuralPartialEq for Statement
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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