Struct little::Template [] [src]

pub struct Template<V> {
    pub constants: Options<Constant, V>,
    pub calls_template: OptionsTemplate<Call>,
    pub instructions: Vec<Instruction>,
    pub bindings_capacity: u32,
}

All the data required to load the processor.

Fields

constants
calls_template
instructions
bindings_capacity

Methods

impl<V> Template<V>

fn new(constants: Options<Constant, V>, calls_template: OptionsTemplate<Call>, instructions: Vec<Instruction>, bindings_capacity: u32) -> Template<V>

fn empty() -> Template<V>

fn with_constant(self, index: Constant, value: V) -> Self

fn push_constant(&mut self, index: Constant, value: V) -> &mut Self

fn with_call<S: Into<String>>(self, key: S, index: Call) -> Self

fn push_instruction(&mut self, instruction: Instruction)

fn with_instructions<I: IntoIterator<Item=Instruction>>(self, instructions: I) -> Self

Trait Implementations

Derived Implementations

impl<V: Debug> Debug for Template<V>

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