pub enum TransformAction {
Ignore,
Replace(Vec<Instruction>),
}Expand description
The action that should be performed on an instruction, returned by [IrTransformer::maybe_transform]
Variants§
Ignore
The transformer doesn’t apply to this instruction
Replace(Vec<Instruction>)
Replace this instruction with one or more other instructions
Auto Trait Implementations§
impl Freeze for TransformAction
impl !RefUnwindSafe for TransformAction
impl !Send for TransformAction
impl !Sync for TransformAction
impl Unpin for TransformAction
impl !UnwindSafe for TransformAction
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