pub struct IrRewriter<'c> { /* private fields */ }Expand description
An IR rewriter. Owns the underlying rewriter object.
Implementations§
Source§impl<'c> IrRewriter<'c>
impl<'c> IrRewriter<'c>
Sourcepub fn from_op(op: OperationRef<'c, '_>) -> Self
pub fn from_op(op: OperationRef<'c, '_>) -> Self
Creates an IR rewriter positioned before the given operation.
Sourcepub fn as_rewriter_base(&self) -> RewriterBase<'c, '_>
pub fn as_rewriter_base(&self) -> RewriterBase<'c, '_>
Returns the underlying rewriter base.
Trait Implementations§
Auto Trait Implementations§
impl<'c> Freeze for IrRewriter<'c>
impl<'c> RefUnwindSafe for IrRewriter<'c>
impl<'c> !Send for IrRewriter<'c>
impl<'c> !Sync for IrRewriter<'c>
impl<'c> Unpin for IrRewriter<'c>
impl<'c> UnwindSafe for IrRewriter<'c>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more