StmtKind in rustc_ast::ast - Rust (original) (raw)

pub enum StmtKind {
    Let(Box<Local>),
    Item(Box<Item>),
    Expr(Box<Expr>),
    Semi(Box<Expr>),
    Empty,
    MacCall(Box<MacCallStmt>),
}

§

A local (let) binding.

§

An item definition.

§

Expr without trailing semi-colon.

§

Expr with a trailing semi-colon.

§

Just a trailing semi-colon.

§

Macro.

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes

Size for each variant: