Struct python_parser::ast::Funcdef[][src]

pub struct Funcdef {
    pub async: bool,
    pub decorators: Vec<Decorator>,
    pub name: String,
    pub parameters: TypedArgsList,
    pub return_type: Option<Expression>,
    pub code: Vec<Statement>,
}

A function definition, including its decorators.

Fields

Trait Implementations

impl Clone for Funcdef
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Funcdef
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Funcdef
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Funcdef

impl Sync for Funcdef