Convert a [`CompactAtom`] to an `Atom >`.
(&self, atom: &CompactAtom)
| 238 | |
| 239 | /// Convert a [`CompactAtom`] to an `Atom<Option<Hash>>`. |
| 240 | pub fn expand_atom(&self, atom: &CompactAtom) -> FormatResult<Atom<Option<Hash>>> { |
| 241 | match atom { |
| 242 | CompactAtom::Insertion(v) => Ok(Atom::Insertion(self.expand_insertion(v)?)), |
| 243 | CompactAtom::EdgeUpdate(em) => Ok(Atom::EdgeUpdate(self.expand_edge_update(em)?)), |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | // ── Internal Helpers ─────────────────────────────────────────── |
| 248 |