Struct syn::Block
[−]
[src]
pub struct Block { pub stmts: Vec<Stmt>, }
A Block ({ .. }
).
E.g. { .. }
as in fn foo() { .. }
Fields
stmts: Vec<Stmt>
Statements in a block
Trait Implementations
impl ToTokens for Block
[src]
impl Debug for Block
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Block
[src]
fn clone(&self) -> Block
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Block
[src]
impl PartialEq for Block
[src]
fn eq(&self, __arg_0: &Block) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Block) -> bool
[src]
This method tests for !=
.