WithVar

Trait WithVar 

Source
pub trait WithVar {
    // Required method
    fn var(&self) -> &Var;

    // Provided method
    fn write_var(&self, b: &mut CodeBuffer) { ... }
}
Expand description

An element with a variable.

Required Methods§

Source

fn var(&self) -> &Var

Gets the variable.

Provided Methods§

Source

fn write_var(&self, b: &mut CodeBuffer)

Writes the variable.

Implementors§