(
pos: &crate::Position<Option<Hash>>,
table: &mut format_v3::HashDedupTable,
)
| 594 | use crate::change::atom::{Atom, EdgeUpdate, Insertion, NewEdge}; |
| 595 | |
| 596 | fn collect_position_hash( |
| 597 | pos: &crate::Position<Option<Hash>>, |
| 598 | table: &mut format_v3::HashDedupTable, |
| 599 | ) -> Result<(), format_v3::FormatError> { |
| 600 | if let Some(ref h) = pos.change { |
| 601 | table.insert(*h.as_bytes())?; |
| 602 | } |
| 603 | Ok(()) |
| 604 | } |
| 605 | |
| 606 | fn collect_graph_node_hash( |
| 607 | node: &crate::GraphNode<Option<Hash>>, |