Enum syn::Stmt[][src]

pub enum Stmt {
    Local(Local),
    Item(Item),
    Expr(Expr),
    Semi(ExprSemi),
}
[]

A statement, usually ending in a semicolon.

This type is available if Syn is built with the "full" feature.

Variants

[]

A local (let) binding.

[]

An item definition.

[]

Expr without trailing semicolon.

[]

Expression with trailing semicolon.

Trait Implementations

impl Synom for Stmt
[src]
[+]

[]

A short name of the type being parsed. Read more

impl ToTokens for Stmt
[src]
[+]

[]

Write self to the given Tokens. Read more

[]

Convert self directly into a Tokens object. Read more

impl Clone for Stmt
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Stmt

impl !Sync for Stmt