Get the position that a `cursor.next_block()` call would move this cursor to, but do not update this cursor's position.
(&self)
| 316 | /// Get the position that a `cursor.next_block()` call would move this |
| 317 | /// cursor to, but do not update this cursor's position. |
| 318 | fn next_block_position(&self) -> CursorPosition { |
| 319 | let next = if let Some(block) = self.current_block() { |
| 320 | self.layout().next_block(block) |
| 321 | } else { |
| 322 | self.layout().entry_block() |
| 323 | }; |
| 324 | match next { |
| 325 | Some(block) => CursorPosition::Before(block), |
| 326 | None => CursorPosition::Nowhere, |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | /// Go to the top of the next block in layout order and return it. |
| 331 | /// |
no test coverage detected