MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / expand_atom

Method expand_atom

atomic-core/src/change/format_v3/compact/compactor.rs:240–245  ·  view source on GitHub ↗

Convert a [`CompactAtom`] to an `Atom >`.

(&self, atom: &CompactAtom)

Source from the content-addressed store, hash-verified

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

Calls 4

InsertionClass · 0.85
EdgeUpdateClass · 0.85
expand_insertionMethod · 0.80
expand_edge_updateMethod · 0.80