| 75 | /// doesn't yet have a hash. |
| 76 | #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] |
| 77 | pub enum Atom<H> { |
| 78 | /// Insert new content into the graph |
| 79 | Insertion(Insertion<H>), |
| 80 | /// Modify existing edges |
| 81 | EdgeUpdate(EdgeUpdate<H>), |
| 82 | } |
| 83 | |
| 84 | impl<H> Atom<H> { |
| 85 | /// Check if this is a Insertion atom. |