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: Options<Constant, V>
calls_template: OptionsTemplate<Call>
instructions: Vec<Instruction>
bindings_capacity: u32
Methods
impl<V> Template<V>
[src]
fn new(
constants: Options<Constant, V>,
calls_template: OptionsTemplate<Call>,
instructions: Vec<Instruction>,
bindings_capacity: u32
) -> Template<V>
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
self,
instructions: I
) -> Self