Enum syntax::ast::Stmt_Experimental [-]  [+] [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 Show for Stmt_

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

impl<__S: Writer> Hash<__S> for Stmt_

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for Stmt_

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for Stmt_

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

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)