Trait CompilableAsDependency

Source
pub trait CompilableAsDependency: CompilableAsContent {
    // Required method
    fn compile_as_dependency(
        &self,
        ctx: &ContextHandle,
    ) -> Result<Option<String>, Box<dyn Error>>;
}

Required Methods§

Source

fn compile_as_dependency( &self, ctx: &ContextHandle, ) -> Result<Option<String>, Box<dyn Error>>

Compile self and store the result in the given Context.

Expected to return None if none of dependencies is missing from Context, or a name of a missing dependency, chosen arbitrarily.

Implementors§