Enum syn::Stmt [] [src]

pub enum Stmt {
    Local(Box<Local>),
    Item(Box<Item>),
    Expr(Box<Expr>),
    Semi(Box<Expr>),
    Mac(Box<(Mac, MacStmtStyle, Vec<Attribute>)>),
}

A statement, usually ending in a semicolon.

Variants

A local (let) binding.

An item definition.

Expr without trailing semicolon.

Expression with trailing semicolon;

Macro invocation.

Trait Implementations

impl ToTokens for Stmt
[src]

[src]

Write self to the given Tokens. Read more

impl Debug for Stmt
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Stmt
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Stmt
[src]

impl PartialEq for Stmt
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for Stmt
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more