Struct pythonic::function::Function [] [src]

pub struct Function {
    pub docstring: Option<Comment>,
    pub name: String,
    pub args: Vec<Argument>,
    // some fields omitted
}

Fields

docstring: Option<Comment> name: String args: Vec<Argument>

Methods

impl Function
[src]

fn new<T: Display>(name: T, args: Vec<Argument>, parent: &Block) -> Function

fn add_statement(&mut self, function_call: Statement)

fn add_docstring<T: Display>(&mut self, doc: T)

Trait Implementations

impl Clone for Function
[src]

fn clone(&self) -> Function

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 Debug for Function
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Function
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.