Skip to main content

RewriterExt

Trait RewriterExt 

Source
pub trait RewriterExt: Rewriter {
    // Provided methods
    fn replace_op_with(
        &mut self,
        ctx: &mut Context,
        op: Ptr<Operation>,
        new_op: Ptr<Operation>,
    ) { ... }
    fn append_op_with_result(
        &mut self,
        ctx: &mut Context,
        op: &impl OneResultInterface,
    ) -> Value { ... }
}

Provided Methods§

Source

fn replace_op_with( &mut self, ctx: &mut Context, op: Ptr<Operation>, new_op: Ptr<Operation>, )

Source

fn append_op_with_result( &mut self, ctx: &mut Context, op: &impl OneResultInterface, ) -> Value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§