| 1 | struct WithAttrsDiff<'__daft> { |
| 2 | a: <i32 as ::daft::Diffable>::Diff<'__daft>, |
| 3 | b: <BTreeMap<Uuid, BTreeSet<usize>> as ::daft::Diffable>::Diff<'__daft>, |
| 4 | d: ::daft::Leaf<&'__daft Lazy>, |
| 5 | e: ::daft::Leaf<&'__daft usize>, |
| 6 | f: <usize as ::daft::Diffable>::Diff<'__daft>, |
| 7 | } |
| 8 | impl<'__daft> ::core::fmt::Debug for WithAttrsDiff<'__daft> |
| 9 | where |
| 10 | <i32 as ::daft::Diffable>::Diff<'__daft>: ::core::fmt::Debug, |
| 11 | <BTreeMap< |
| 12 | Uuid, |
| 13 | BTreeSet<usize>, |
| 14 | > as ::daft::Diffable>::Diff<'__daft>: ::core::fmt::Debug, |
| 15 | ::daft::Leaf<&'__daft Lazy>: ::core::fmt::Debug, |
| 16 | ::daft::Leaf<&'__daft usize>: ::core::fmt::Debug, |
| 17 | <usize as ::daft::Diffable>::Diff<'__daft>: ::core::fmt::Debug, |
| 18 | { |
| 19 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| 20 | f.debug_struct(stringify!(WithAttrsDiff)) |
| 21 | .field(stringify!(a), &self.a) |
| 22 | .field(stringify!(b), &self.b) |
| 23 | .field(stringify!(d), &self.d) |
| 24 | .field(stringify!(e), &self.e) |
| 25 | .field(stringify!(f), &self.f) |
| 26 | .finish() |
| 27 | } |
| 28 | } |
| 29 | impl<'__daft> ::core::cmp::PartialEq for WithAttrsDiff<'__daft> |
| 30 | where |
| 31 | <i32 as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::PartialEq, |
| 32 | <BTreeMap< |
| 33 | Uuid, |
| 34 | BTreeSet<usize>, |
| 35 | > as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::PartialEq, |
| 36 | ::daft::Leaf<&'__daft Lazy>: ::core::cmp::PartialEq, |
| 37 | ::daft::Leaf<&'__daft usize>: ::core::cmp::PartialEq, |
| 38 | <usize as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::PartialEq, |
| 39 | { |
| 40 | fn eq(&self, other: &Self) -> bool { |
| 41 | self.a == other.a && self.b == other.b && self.d == other.d && self.e == other.e |
| 42 | && self.f == other.f |
| 43 | } |
| 44 | } |
| 45 | impl<'__daft> ::core::cmp::Eq for WithAttrsDiff<'__daft> |
| 46 | where |
| 47 | <i32 as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::Eq, |
| 48 | <BTreeMap< |
| 49 | Uuid, |
| 50 | BTreeSet<usize>, |
| 51 | > as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::Eq, |
| 52 | ::daft::Leaf<&'__daft Lazy>: ::core::cmp::Eq, |
| 53 | ::daft::Leaf<&'__daft usize>: ::core::cmp::Eq, |
| 54 | <usize as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::Eq, |
| 55 | {} |
| 56 | impl ::daft::Diffable for WithAttrs { |
| 57 | type Diff<'__daft> = WithAttrsDiff<'__daft> where Self: '__daft; |
| 58 | fn diff<'__daft>(&'__daft self, other: &'__daft Self) -> WithAttrsDiff<'__daft> { |
| 59 | Self::Diff { |
| 60 | a: ::daft::Diffable::diff(&self.a, &other.a), |
| 61 | b: ::daft::Diffable::diff(&self.b, &other.b), |
| 62 | d: ::daft::Leaf { |
| 63 | before: &self.d, |
| 64 | after: &other.d, |
| 65 | }, |
| 66 | e: ::daft::Leaf { |
| 67 | before: &self.e, |
| 68 | after: &other.e, |
| 69 | }, |
| 70 | f: ::daft::Diffable::diff(&self.f, &other.f), |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | struct LazyDiff<'__daft> { |
| 75 | x: <usize as ::daft::Diffable>::Diff<'__daft>, |
| 76 | y: <usize as ::daft::Diffable>::Diff<'__daft>, |
| 77 | } |
| 78 | impl<'__daft> ::core::fmt::Debug for LazyDiff<'__daft> |
| 79 | where |
| 80 | <usize as ::daft::Diffable>::Diff<'__daft>: ::core::fmt::Debug, |
| 81 | <usize as ::daft::Diffable>::Diff<'__daft>: ::core::fmt::Debug, |
| 82 | { |
| 83 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| 84 | f.debug_struct(stringify!(LazyDiff)) |
| 85 | .field(stringify!(x), &self.x) |
| 86 | .field(stringify!(y), &self.y) |
| 87 | .finish() |
| 88 | } |
| 89 | } |
| 90 | impl<'__daft> ::core::cmp::PartialEq for LazyDiff<'__daft> |
| 91 | where |
| 92 | <usize as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::PartialEq, |
| 93 | <usize as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::PartialEq, |
| 94 | { |
| 95 | fn eq(&self, other: &Self) -> bool { |
| 96 | self.x == other.x && self.y == other.y |
| 97 | } |
| 98 | } |
| 99 | impl<'__daft> ::core::cmp::Eq for LazyDiff<'__daft> |
| 100 | where |
| 101 | <usize as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::Eq, |
| 102 | <usize as ::daft::Diffable>::Diff<'__daft>: ::core::cmp::Eq, |
| 103 | {} |
| 104 | impl ::daft::Diffable for Lazy { |
| 105 | type Diff<'__daft> = LazyDiff<'__daft> where Self: '__daft; |
| 106 | fn diff<'__daft>(&'__daft self, other: &'__daft Self) -> LazyDiff<'__daft> { |
| 107 | Self::Diff { |
| 108 | x: ::daft::Diffable::diff(&self.x, &other.x), |
| 109 | y: ::daft::Diffable::diff(&self.y, &other.y), |
| 110 | } |
| 111 | } |
| 112 | } |