(
&self,
position: Position<NodeId>,
)
| 663 | } |
| 664 | |
| 665 | fn find_block( |
| 666 | &self, |
| 667 | position: Position<NodeId>, |
| 668 | ) -> Result<GraphNode<NodeId>, PristineError> { |
| 669 | self.blocks |
| 670 | .get(&position) |
| 671 | .copied() |
| 672 | .ok_or(PristineError::BlockNotFound { |
| 673 | change: position.change.get(), |
| 674 | pos: position.pos.get(), |
| 675 | }) |
| 676 | } |
| 677 | |
| 678 | fn find_block_end( |
| 679 | &self, |