Enum python_ast::ast::Expr
[−]
[src]
pub enum Expr { Lambda { arguments: Vec<Expr>, body: Box<Expr>, }, Conditional { condition: Box<Expr>, consequent: Box<Expr>, alternative: Box<Expr>, }, BinOp { op: Op, left: Box<Expr>, right: Box<Expr>, }, UnaryOp { op: Op, operand: Box<Expr>, }, Call { func: OwnedTk, args: Vec<Expr>, keywords: (), }, Attribute { value: Box<Expr>, attr: OwnedTk, }, Dict { items: Vec<(Expr, Expr)>, }, List { elems: Vec<Expr>, }, NameConstant(OwnedTk), Constant(OwnedTk), None, }
Variants
Lambda
Fields of Lambda
arguments: Vec<Expr> | |
body: Box<Expr> |
Conditional
Fields of Conditional
condition: Box<Expr> | |
consequent: Box<Expr> | |
alternative: Box<Expr> |
BinOp
Fields of BinOp
op: Op | |
left: Box<Expr> | |
right: Box<Expr> |
UnaryOp
Fields of UnaryOp
op: Op | |
operand: Box<Expr> |
Call
Fields of Call
func: OwnedTk | |
args: Vec<Expr> | |
keywords: () |
Attribute
Fields of Attribute
value: Box<Expr> | |
attr: OwnedTk |
Dict
Fields of Dict
items: Vec<(Expr, Expr)> |
List
Fields of List
elems: Vec<Expr> |
NameConstant(OwnedTk)
Constant(OwnedTk)
None
Trait Implementations
impl Debug for Expr
[src]
impl Clone for Expr
[src]
fn clone(&self) -> Expr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Expr
[src]
impl PartialEq for Expr
[src]
fn eq(&self, __arg_0: &Expr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Expr) -> bool
This method tests for !=
.