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
Local(Box<Local>)A local (let) binding.
Item(Box<Item>)An item definition.
Expr(Box<Expr>)Expr without trailing semicolon.
Semi(Box<Expr>)Expression with trailing semicolon;
Mac(Box<(Mac, MacStmtStyle, Vec<Attribute>)>)Macro invocation.
Trait Implementations
impl ToTokens for Stmt[src]
impl Debug for Stmt[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for Stmt[src]
fn clone(&self) -> Stmt[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 Stmt[src]
impl PartialEq for Stmt[src]
fn eq(&self, __arg_0: &Stmt) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Stmt) -> bool[src]
This method tests for !=.