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§
fn name(&self) -> &'static str
fn apply(&self, _ctx: &mut ApplyContext<'_>) -> Result<()>
fn clear_cache(&self, _id: CompilationId)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".