Enum rustc::hir::Stmt_ [] [src]

pub enum Stmt_ {
    StmtDecl(P<Decl>, NodeId),
    StmtExpr(P<Expr>, NodeId),
    StmtSemi(P<Expr>, NodeId),
}
🔬 This is a nightly-only experimental API. (rustc_private)

Variants

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

Could be an item or a local (let) binding:

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

Expr without trailing semi-colon (must have unit type):

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

Expr with trailing semi-colon (may have any type):

Methods

impl Stmt_
[src]

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

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

Trait Implementations

impl Debug for Stmt_
[src]

Formats the value using the given formatter.

impl Clone for Stmt_
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Stmt_
[src]

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

This method tests for !=.

impl Eq for Stmt_
[src]

impl Encodable for Stmt_
[src]

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

deprecated in favor of rustc-serialize on crates.io

impl Decodable for Stmt_
[src]

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

deprecated in favor of rustc-serialize on crates.io

impl Hash for Stmt_
[src]

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

Feeds a slice of this type into the state provided.