| 1 | struct BasicDiff<'__daft> { |
| 2 | a: <i32 as ::daft::Diffable>::Diff<'__daft>, |
| 3 | b: <BTreeMap<Uuid, BTreeSet<usize>> as ::daft::Diffable>::Diff<'__daft>, |
| 4 | } |
| 5 | impl<'__daft> ::core::fmt::Debug for BasicDiff<'__daft> |
| 6 | where |
| 7 | <i32 as ::daft::Diffable>::Diff<'__daft>: ::core::fmt::Debug, |
| 8 | <BTreeMap< |
| 9 | Uuid, |
| 10 | BTreeSet<usize>, |
| 11 | > as ::daft::Diffable>::Diff<'__daft>: ::core::fmt::Debug, |
| 12 | { |
| 13 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| 14 | f.debug_struct(stringify!(BasicDiff)) |
| 15 | .field(stringify!(a), &self.a) |
| 16 | .field(stringify!(b), &self.b) |
| 17 | .finish() |
| 18 | } |
| 19 | } |
| 20 | impl<'__daft> ::core::cmp::PartialEq for BasicDiff<'__daft> |
| 21 | where |
| 22 | <i32 as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::PartialEq, |
| 23 | <BTreeMap< |
| 24 | Uuid, |
| 25 | BTreeSet<usize>, |
| 26 | > as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::PartialEq, |
| 27 | { |
| 28 | fn eq(&self, other: &Self) -> bool { |
| 29 | self.a == other.a && self.b == other.b |
| 30 | } |
| 31 | } |
| 32 | impl<'__daft> ::core::cmp::Eq for BasicDiff<'__daft> |
| 33 | where |
| 34 | <i32 as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::Eq, |
| 35 | <BTreeMap< |
| 36 | Uuid, |
| 37 | BTreeSet<usize>, |
| 38 | > as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::Eq, |
| 39 | {} |
| 40 | impl ::daft::Diffable for Basic { |
| 41 | type Diff<'__daft> = BasicDiff<'__daft> where Self: '__daft; |
| 42 | fn diff<'__daft>(&'__daft self, other: &'__daft Self) -> BasicDiff<'__daft> { |
| 43 | Self::Diff { |
| 44 | a: ::daft::Diffable::diff(&self.a, &other.a), |
| 45 | b: ::daft::Diffable::diff(&self.b, &other.b), |
| 46 | } |
| 47 | } |
| 48 | } |