Enum python_ast::ast::Stmt [] [src]

pub enum Stmt {
    FunctionDef {
        fntype: FnType,
        name: OwnedTk,
        arguments: Vec<Expr>,
        body: Box<Stmt>,
    },
    Block(Vec<Stmt>),
    ClassDef {
        name: OwnedTk,
        bases: Vec<Expr>,
        body: Box<Stmt>,
    },
    Return(Option<Expr>),
    Delete(Vec<Expr>),
    Assign {
        target: Expr,
        value: Expr,
    },
    AugAssign {
        target: Expr,
        op: Op,
        value: Expr,
    },
    Import,
    ImportFrom,
    Global(Vec<OwnedTk>),
    Nonlocal(Vec<OwnedTk>),
    Assert {
        test: Expr,
        message: Option<Expr>,
    },
    Expr(Expr),
    Pass,
    Break,
    Continue,
    Newline(usize),
}

Variants

Fields of FunctionDef

Fields of ClassDef

Fields of Assign

Fields of AugAssign

Fields of Assert

Trait Implementations

impl Debug for Stmt
[src]

Formats the value using the given formatter.

impl Clone for Stmt
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Stmt
[src]

impl PartialEq for Stmt
[src]

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

This method tests for !=.