Struct syn::Block[][src]

pub struct Block {
    pub brace_token: Brace,
    pub stmts: Vec<Stmt>,
}

A braced block containing Rust statements.

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

Fields

Statements in a block

Methods

impl Block
[src]

Trait Implementations

impl Synom for Block
[src]

A short name of the type being parsed. Read more

impl ToTokens for Block
[src]

Write self to the given Tokens. Read more

Convert self directly into a Tokens object. Read more

impl Clone for Block
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Block

impl !Sync for Block