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

pub struct Block {
    pub stmts: ThinVec<Stmt>,
    pub id: NodeId,
    pub rules: BlockCheckMode,
    pub span: Span,
    pub tokens: Option<LazyAttrTokenStream>,
}

Expand description

A block ({ .. }).

E.g., { .. } as in fn foo() { .. }.

The statements in the block.

Distinguishes between unsafe { ... } and { ... }.

§

§

§

§

§

§

§

§

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: 32 bytes