Enum syntex_syntax::ast::Stmt_ [] [src]

pub enum Stmt_ {
    StmtDecl(P<Decl>, NodeId),
    StmtExpr(P<Expr>, NodeId),
    StmtSemi(P<Expr>, NodeId),
    StmtMac(P<Mac>, MacStmtStyle, ThinAttributes),
}

Variants

StmtDecl

Could be an item or a local (let) binding:

StmtExpr

Expr without trailing semi-colon (must have unit type):

StmtSemi

Expr with trailing semi-colon (may have any type):

StmtMac

Methods

impl Stmt_

fn attrs(&self) -> &[Attribute]

Trait Implementations

Derived Implementations

impl Hash for Stmt_

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for Stmt_

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Stmt_, __D::Error>

impl Encodable for Stmt_

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Eq for Stmt_

impl PartialEq for Stmt_

fn eq(&self, __arg_0: &Stmt_) -> bool

fn ne(&self, __arg_0: &Stmt_) -> bool

impl Clone for Stmt_

fn clone(&self) -> Stmt_

fn clone_from(&mut self, source: &Self)