Trait stache::Compile
[−]
[src]
pub trait Compile { fn emit(&self, buf: &mut Write) -> Result<()>; fn write<P: AsRef<Path>>(&self, output: P) -> Result<()> { ... } }
Defines the source code output behavior for compiler backends. The main compiler driver treats the result of each backend identically.
Required Methods
fn emit(&self, buf: &mut Write) -> Result<()>
Writes the final translated source code to an output buffer.
Provided Methods
Implementors
impl Compile for Program