Struct rustc_typeck::hir::Block [] [src]

pub struct Block {
    pub stmts: P<[Spanned<Stmt_>]>,
    pub expr: Option<P<Expr>>,
    pub id: NodeId,
    pub rules: BlockCheckMode,
    pub span: Span,
}
🔬 This is a nightly-only experimental API. (rustc_private)

Fields

🔬 This is a nightly-only experimental API. (rustc_private)

Statements in a block

🔬 This is a nightly-only experimental API. (rustc_private)

An expression at the end of the block without a semicolon, if any

🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)

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

🔬 This is a nightly-only experimental API. (rustc_private)

Trait Implementations

impl Decodable for Block
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

impl PartialEq<Block> for Block
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Block
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Clone for Block
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Block
[src]

impl Debug for Block
[src]

Formats the value using the given formatter.

impl Encodable for Block
[src]

🔬 This is a nightly-only experimental API. (rustc_private)