Rebuild this cursor positioned at the first instruction in `block`. 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, block: Block) { let mut pos = FuncCursor::new(func).at_first_inst(block); // Use `pos`... } ```
(mut self, block: ir::Block)
| 128 | /// } |
| 129 | /// ``` |
| 130 | fn at_first_inst(mut self, block: ir::Block) -> Self |
| 131 | where |
| 132 | Self: Sized, |
| 133 | { |
| 134 | self.goto_first_inst(block); |
| 135 | self |
| 136 | } |
| 137 | |
| 138 | /// Rebuild this cursor positioned at the last instruction in `block`. |
| 139 | /// |
nothing calls this directly
no test coverage detected