pub enum Stmt {
    Break {
        span: TokenSpan,
    },
    Continue {
        span: TokenSpan,
    },
    For {
        span: TokenSpan,
        ident: Ident,
        from_expr: Expr,
        to_expr: Expr,
        step_expr: Option<Expr>,
        block: Box<Block>,
    },
    If {
        span: TokenSpan,
        expr: Expr,
        block_if_true: Box<Block>,
        block_if_false: Option<Box<Block>>,
    },
    Match {
        span: TokenSpan,
        expr: Expr,
        matches: Vec<Match>,
    },
    Let {
        span: TokenSpan,
        ty: RefCell<Option<Ty>>,
        shadow: Cell<Option<ScopeSymShadow>>,
        ident: Ident,
        ty_expr: Option<TyExpr>,
        expr: Option<Expr>,
    },
    Return {
        span: TokenSpan,
        expr: Option<Expr>,
    },
    Block {
        span: TokenSpan,
        block: Box<Block>,
    },
    Expr {
        span: TokenSpan,
        expr: Expr,
    },
}

Variants

Break

Fields

span: TokenSpan

Continue

Fields

span: TokenSpan

For

Fields

span: TokenSpan
ident: Ident
from_expr: Expr
to_expr: Expr
step_expr: Option<Expr>
block: Box<Block>

If

Fields

span: TokenSpan
expr: Expr
block_if_true: Box<Block>
block_if_false: Option<Box<Block>>

Match

Fields

span: TokenSpan
expr: Expr
matches: Vec<Match>

Let

Fields

span: TokenSpan
ident: Ident
ty_expr: Option<TyExpr>
expr: Option<Expr>

Return

Fields

span: TokenSpan
expr: Option<Expr>

Block

Fields

span: TokenSpan
block: Box<Block>

Expr

Fields

span: TokenSpan
expr: Expr

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.