(
left: Option<(&Object, &diff::ObjectDiff)>,
right: Option<(&Object, &diff::ObjectDiff)>,
diff_config: &DiffObjConfig,
)
| 21 | |
| 22 | impl DiffResult { |
| 23 | pub fn new( |
| 24 | left: Option<(&Object, &diff::ObjectDiff)>, |
| 25 | right: Option<(&Object, &diff::ObjectDiff)>, |
| 26 | diff_config: &DiffObjConfig, |
| 27 | ) -> Result<Self> { |
| 28 | Ok(Self { |
| 29 | left: left.map(|(obj, diff)| DiffObject::new(obj, diff, diff_config)).transpose()?, |
| 30 | right: right.map(|(obj, diff)| DiffObject::new(obj, diff, diff_config)).transpose()?, |
| 31 | }) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | impl DiffObject { |
nothing calls this directly
no test coverage detected