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
LambdaFields of Lambda
arguments: Vec<Expr> | |
body: Box<Expr> |
ConditionalFields of Conditional
condition: Box<Expr> | |
consequent: Box<Expr> | |
alternative: Box<Expr> |
BinOpFields of BinOp
op: Op | |
left: Box<Expr> | |
right: Box<Expr> |
UnaryOpFields of UnaryOp
op: Op | |
operand: Box<Expr> |
CallFields of Call
func: OwnedTk | |
args: Vec<Expr> | |
keywords: () |
AttributeFields of Attribute
value: Box<Expr> | |
attr: OwnedTk |
DictFields of Dict
items: Vec<(Expr, Expr)> |
ListFields of List
elems: Vec<Expr> |
NameConstant(OwnedTk)Constant(OwnedTk)NoneTrait 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 !=.