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

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

async: booldecorators: Vec<Decorator>name: Stringparameters: TypedArgsListreturn_type: Option<Expression>code: Vec<Statement>

Trait Implementations

impl Clone for Funcdef[src]

impl Debug for Funcdef[src]

impl PartialEq<Funcdef> for Funcdef[src]

impl StructuralPartialEq for Funcdef[src]

Auto Trait Implementations

impl RefUnwindSafe for Funcdef

impl Send for Funcdef

impl Sync for Funcdef

impl Unpin for Funcdef

impl UnwindSafe for Funcdef

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.