Struct pythonic::block::Block [] [src]

pub struct Block {
    pub indentation: usize,
    pub statements: Vec<Statement>,
}

Fields

indentation: usize statements: Vec<Statement>

Methods

impl Block
[src]

fn new() -> Block

fn new_with_parent(parent: &Block) -> Block

fn add_function(&mut self, function: Function)

fn add_statement(&mut self, statement: Statement)

fn indentation(&self) -> String

Trait Implementations

impl Clone for Block
[src]

fn clone(&self) -> Block

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

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

Formats the value using the given formatter.

impl Display for Block
[src]

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

Formats the value using the given formatter.