Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin:
    Debug
    + Send
    + Sync {
    // Provided methods
    fn name(&self) -> &'static str { ... }
    fn apply(&self, _ctx: &mut ApplyContext<'_>) -> Result<()> { ... }
    fn clear_cache(&self, _id: CompilationId) { ... }
}

Provided Methods§

Source

fn name(&self) -> &'static str

Source

fn apply(&self, _ctx: &mut ApplyContext<'_>) -> Result<()>

Source

fn clear_cache(&self, _id: CompilationId)

Implementors§