pub trait TransformDispatch {
// Required method
fn dispatch(op: Shared<dyn Op>, pass: &SinglePass) -> Result<RewriteResult>;
}
Expand description
Interface to add custom passes to the compiler.
Required Methods§
fn dispatch(op: Shared<dyn Op>, pass: &SinglePass) -> Result<RewriteResult>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.