Trait lovm2::gen::HasBlock[][src]

pub trait HasBlock {
    pub fn block_mut(&mut self) -> &mut Block;

    pub fn step<T>(&mut self, element: T) -> &mut Self
    where
        T: Into<HirElement>
, { ... }
pub fn branch(&mut self) -> &mut Branch { ... }
pub fn repeat(&mut self) -> &mut Repeat { ... }
pub fn repeat_until(&mut self, condition: Expr) -> &mut Repeat { ... }
pub fn repeat_iterating<U, T>(
        &mut self,
        collection: U,
        item: T
    ) -> &mut Repeat
    where
        T: Into<Variable>,
        U: Into<Expr>
, { ... } }

Supplying functionality for all structures containing a Block

Required methods

pub fn block_mut(&mut self) -> &mut Block[src]

Loading content...

Provided methods

pub fn step<T>(&mut self, element: T) -> &mut Self where
    T: Into<HirElement>, 
[src]

pub fn branch(&mut self) -> &mut Branch[src]

pub fn repeat(&mut self) -> &mut Repeat[src]

pub fn repeat_until(&mut self, condition: Expr) -> &mut Repeat[src]

pub fn repeat_iterating<U, T>(&mut self, collection: U, item: T) -> &mut Repeat where
    T: Into<Variable>,
    U: Into<Expr>, 
[src]

Loading content...

Implementors

impl HasBlock for Repeat[src]

impl HasBlock for Hir[src]

Loading content...