Convert a [`CompactPosition`] to a `Position >`. # Errors Returns [`FormatError::HashIndexOutOfBounds`](super::super::error::FormatError::HashIndexOutOfBounds) if the index is invalid.
(&self, pos: &CompactPosition)
| 162 | /// Returns [`FormatError::HashIndexOutOfBounds`](super::super::error::FormatError::HashIndexOutOfBounds) |
| 163 | /// if the index is invalid. |
| 164 | pub fn expand_position(&self, pos: &CompactPosition) -> FormatResult<Position<Option<Hash>>> { |
| 165 | let change = self.index_to_hash(pos.change)?; |
| 166 | Ok(Position { |
| 167 | change, |
| 168 | pos: ChangePosition::new(pos.pos as u64), |
| 169 | }) |
| 170 | } |
| 171 | |
| 172 | /// Convert a [`CompactGraphNode`] to a `GraphNode<Option<Hash>>`. |
| 173 | pub fn expand_graph_node( |