Trait little::Build [] [src]

pub trait Build<'a, V> {
    type Output: Execute<'a, V>;
    fn build(&'a mut self, id: &str, template: Template<V>, calls: &'a HashMap<&'a str, &'a Function<V> + 'a>) -> LittleResult<Self::Output>;
    fn load(&'a mut self, id: &str, env: Fingerprint, calls: &'a Vec<&'a Function<V> + 'a>) -> LittleResult<Self::Output>;
}

Converts template into a runable version.

Consumes Template and produces object that has Run trait, so it is possible to call run on it.

Also requires calls list that could be mapped to calls required by processor.

Associated Types

type Output: Execute<'a, V>

Required Methods

fn build(&'a mut self, id: &str, template: Template<V>, calls: &'a HashMap<&'a str, &'a Function<V> + 'a>) -> LittleResult<Self::Output>

Builds executable from template.

fn load(&'a mut self, id: &str, env: Fingerprint, calls: &'a Vec<&'a Function<V> + 'a>) -> LittleResult<Self::Output>

Loads existing executable by unique fingerprint and env fingerprint.

Implementors