Struct pythonic::class::Class [] [src]

pub struct Class {
    pub docstring: Option<Comment>,
    pub name: String,
    pub block: Block,
    pub inherit_from: Option<String>,
}

Fields

docstring: Option<Comment> name: String block: Block inherit_from: Option<String>

Methods

impl Class
[src]

fn new<T: Display>(name: T, parent: &Block) -> Class

fn inherit_from<T: Display>(&mut self, inherit: T)

fn add_statement(&mut self, statement: Statement)

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

Trait Implementations

impl Clone for Class
[src]

fn clone(&self) -> Class

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 Class
[src]

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

Formats the value using the given formatter.

impl Display for Class
[src]

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

Formats the value using the given formatter.