pub trait Buildable<T = HIR> {
    // Required methods
    fn inherit(cfg: ErgConfig, shared: SharedCompilerResource) -> Self
       where Self: Sized;
    fn build(
        &mut self,
        src: String,
        mode: &str
    ) -> Result<CompleteArtifact<T>, IncompleteArtifact<T>>;
    fn pop_context(&mut self) -> Option<ModuleContext>;
    fn get_context(&self) -> Option<&ModuleContext>;
}

Required Methods§

source

fn inherit(cfg: ErgConfig, shared: SharedCompilerResource) -> Selfwhere Self: Sized,

source

fn build( &mut self, src: String, mode: &str ) -> Result<CompleteArtifact<T>, IncompleteArtifact<T>>

source

fn pop_context(&mut self) -> Option<ModuleContext>

source

fn get_context(&self) -> Option<&ModuleContext>

Implementors§