Enum syntax::ast::Stmt_Unstable [-] [+] [src]

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

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

Trait Implementations

Derived Implementations

impl Debug for Stmt_

fn fmt(&self, __arg_0: &mut Formatter) -> Result

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_, Error>

impl Encodable for Stmt_

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

impl Eq for Stmt_

fn assert_receiver_is_total_eq(&self)

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)