Method
optional_edges
(&mut self, r: usize, v: &Option<CompactEdgeUpdate>)
Source from the content-addressed store, hash-verified
| 98 | Ok(()) |
| 99 | } |
| 100 | fn optional_edges(&mut self, r: usize, v: &Option<CompactEdgeUpdate>) -> FormatResult<()> { |
| 101 | put(&mut self.control, u64::from(v.is_some())); |
| 102 | if let Some(v) = v { |
| 103 | self.edges(r, v)?; |
| 104 | } |
| 105 | Ok(()) |
| 106 | } |
| 107 | fn op(&mut self, op: &CompactGraphOp) -> FormatResult<()> { |
| 108 | op.validate_serialized_name_conflict() |
| 109 | .map_err(|reason| FormatError::InvalidGraphOp { |
Tested by
no test coverage detected