Rebuild this cursor positioned at the top of `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_top(block); // Use `pos`... } ```
(mut self, block: ir::Block)
| 191 | /// } |
| 192 | /// ``` |
| 193 | fn at_top(mut self, block: ir::Block) -> Self |
| 194 | where |
| 195 | Self: Sized, |
| 196 | { |
| 197 | self.goto_top(block); |
| 198 | self |
| 199 | } |
| 200 | |
| 201 | /// Rebuild this cursor positioned at the bottom of `block`. |
| 202 | /// |