Enum python_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

Fields of Lambda

Fields of Conditional

Fields of BinOp

Fields of UnaryOp

Fields of Call

Fields of Attribute

Fields of Dict

Fields of List

Trait Implementations

impl Debug for Expr
[src]

Formats the value using the given formatter.

impl Clone for Expr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Expr
[src]

impl PartialEq for Expr
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for Expr
[src]

Returns the "default value" for a type. Read more