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

Writes the final translated source code to an output buffer.

Provided Methods

Saves the translated source code to a file.

Implementors