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

Method collect_new_edge_hashes

atomic-core/src/change/change.rs:630–640  ·  view source on GitHub ↗
(
            e: &NewEdge<Option<Hash>>,
            table: &mut format_v3::HashDedupTable,
        )

Source from the content-addressed store, hash-verified

628 }
629
630 fn collect_new_edge_hashes(
631 e: &NewEdge<Option<Hash>>,
632 table: &mut format_v3::HashDedupTable,
633 ) -> Result<(), format_v3::FormatError> {
634 collect_position_hash(&e.from, table)?;
635 collect_graph_node_hash(&e.to, table)?;
636 if let Some(ref h) = e.introduced_by {
637 table.insert(*h.as_bytes())?;
638 }
639 Ok(())
640 }
641
642 fn collect_edge_update_hashes(
643 em: &EdgeUpdate<Option<Hash>>,

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected