Get the position that a `cursor.prev_block()` call would move this cursor to, but do not update this cursor's position.
(&self)
| 356 | /// Get the position that a `cursor.prev_block()` call would move this |
| 357 | /// cursor to, but do not update this cursor's position. |
| 358 | fn prev_block_position(&self) -> CursorPosition { |
| 359 | let prev = if let Some(block) = self.current_block() { |
| 360 | self.layout().prev_block(block) |
| 361 | } else { |
| 362 | self.layout().last_block() |
| 363 | }; |
| 364 | match prev { |
| 365 | Some(block) => CursorPosition::After(block), |
| 366 | None => CursorPosition::Nowhere, |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | /// Go to the bottom of the previous block in layout order and return it. |
| 371 | /// |
no test coverage detected