pub enum StatementKind<'a> {
Show 15 variants
    LocalDecl(LocalDecl<'a>),
    Block(Block<'a>),
    If {
        condition: Handle<Expression<'a>>,
        accept: Block<'a>,
        reject: Block<'a>,
    },
    Switch {
        selector: Handle<Expression<'a>>,
        cases: Vec<SwitchCase<'a>>,
    },
    Loop {
        body: Block<'a>,
        continuing: Block<'a>,
        break_if: Option<Handle<Expression<'a>>>,
    },
    Break,
    Continue,
    Return {
        value: Option<Handle<Expression<'a>>>,
    },
    Kill,
    Call {
        function: Ident<'a>,
        arguments: Vec<Handle<Expression<'a>>>,
    },
    Assign {
        target: Handle<Expression<'a>>,
        op: Option<BinaryOperator>,
        value: Handle<Expression<'a>>,
    },
    Increment(Handle<Expression<'a>>),
    Decrement(Handle<Expression<'a>>),
    Phony(Handle<Expression<'a>>),
    ConstAssert(Handle<Expression<'a>>),
}Variants§
LocalDecl(LocalDecl<'a>)
Block(Block<'a>)
If
Switch
Loop
Break
Continue
Return
Fields
§
value: Option<Handle<Expression<'a>>>Kill
Call
Assign
Increment(Handle<Expression<'a>>)
Decrement(Handle<Expression<'a>>)
Phony(Handle<Expression<'a>>)
ConstAssert(Handle<Expression<'a>>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StatementKind<'a>
impl<'a> RefUnwindSafe for StatementKind<'a>
impl<'a> Send for StatementKind<'a>
impl<'a> Sync for StatementKind<'a>
impl<'a> Unpin for StatementKind<'a>
impl<'a> UnwindSafe for StatementKind<'a>
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