pub trait CanonicalizeInterface: Op {
// Required method
fn canonicalize(
&self,
ctx: &mut Context,
rewriter: &mut MatchRewriter,
) -> Result<()>;
// Provided method
fn verify(_op: &dyn Op, _ctx: &Context) -> Result<()>
where Self: Sized { ... }
}Required Methods§
fn canonicalize( &self, ctx: &mut Context, rewriter: &mut MatchRewriter, ) -> Result<()>
Provided Methods§
Trait Implementations§
impl OpInterfaceMarker for dyn CanonicalizeInterface
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".