(&self, inode: Inode)
| 718 | } |
| 719 | |
| 720 | fn get_path(&self, inode: Inode) -> Result<Option<String>, PristineError> { |
| 721 | Ok(self |
| 722 | .tree |
| 723 | .iter() |
| 724 | .find_map(|(path, candidate)| (*candidate == inode).then(|| path.clone()))) |
| 725 | } |
| 726 | |
| 727 | fn inode_position(&self, inode: Inode) -> Result<Option<Position<NodeId>>, PristineError> { |
| 728 | Ok(self.positions.get(&inode).copied()) |