Rebuild this cursor positioned at `inst`. This is intended to be used as a builder method: ``` # use cranelift_codegen::ir::{Function, Block, Inst}; # use cranelift_codegen::cursor::{Cursor, FuncCursor}; fn edit_func(func: &mut Function, inst: Inst) { let mut pos = FuncCursor::new(func).at_inst(inst); // Use `pos`... } ```
(mut self, inst: ir::Inst)
| 84 | /// } |
| 85 | /// ``` |
| 86 | fn at_inst(mut self, inst: ir::Inst) -> Self |
| 87 | where |
| 88 | Self: Sized, |
| 89 | { |
| 90 | self.goto_inst(inst); |
| 91 | self |
| 92 | } |
| 93 | |
| 94 | /// Rebuild this cursor positioned at the first insertion point for `block`. |
| 95 | /// This differs from `at_first_inst` in that it doesn't assume that any |
no test coverage detected