Enum syntax::ast::Expr_[src]

pub enum Expr_ {
    ExprVstore(Gc<Expr>, ExprVstore),
    ExprBox(Gc<Expr>, Gc<Expr>),
    ExprVec(Vec<Gc<Expr>>),
    ExprCall(Gc<Expr>, Vec<Gc<Expr>>),
    ExprMethodCall(SpannedIdent, Vec<P<Ty>>, Vec<Gc<Expr>>),
    ExprTup(Vec<Gc<Expr>>),
    ExprBinary(BinOp, Gc<Expr>, Gc<Expr>),
    ExprUnary(UnOp, Gc<Expr>),
    ExprLit(Gc<Lit>),
    ExprCast(Gc<Expr>, P<Ty>),
    ExprIf(Gc<Expr>, P<Block>, Option<Gc<Expr>>),
    ExprWhile(Gc<Expr>, P<Block>),
    ExprForLoop(Gc<Pat>, Gc<Expr>, P<Block>, Option<Ident>),
    ExprLoop(P<Block>, Option<Ident>),
    ExprMatch(Gc<Expr>, Vec<Arm>),
    ExprFnBlock(P<FnDecl>, P<Block>),
    ExprProc(P<FnDecl>, P<Block>),
    ExprBlock(P<Block>),
    ExprAssign(Gc<Expr>, Gc<Expr>),
    ExprAssignOp(BinOp, Gc<Expr>, Gc<Expr>),
    ExprField(Gc<Expr>, SpannedIdent, Vec<P<Ty>>),
    ExprIndex(Gc<Expr>, Gc<Expr>),
    ExprPath(Path),
    ExprAddrOf(Mutability, Gc<Expr>),
    ExprBreak(Option<Ident>),
    ExprAgain(Option<Ident>),
    ExprRet(Option<Gc<Expr>>),
    ExprInlineAsm(InlineAsm),
    ExprMac(Mac),
    ExprStruct(Path, Vec<Field>, Option<Gc<Expr>>),
    ExprRepeat(Gc<Expr>, Gc<Expr>),
    ExprParen(Gc<Expr>),
}

Variants

ExprVstore
ExprBox
ExprVec
ExprCall
ExprMethodCall
ExprTup
ExprBinary
ExprUnary
ExprLit
ExprCast
ExprIf
ExprWhile
ExprForLoop
ExprLoop
ExprMatch
ExprFnBlock
ExprProc
ExprBlock
ExprAssign
ExprAssignOp
ExprField
ExprIndex
ExprPath

Expression that looks like a "name". For example, std::slice::from_elem::<uint> is an ExprPath that's the "name" part of a function call.

ExprAddrOf
ExprBreak
ExprAgain
ExprRet
ExprInlineAsm
ExprMac
ExprStruct
ExprRepeat
ExprParen

Trait Implementations

Derived Implementations

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

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

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

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

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

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

impl Eq for Expr_

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Expr_

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

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

impl Clone for Expr_

fn clone(&self) -> Expr_

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