Debian Codegraph @

tests/fixtures/invalid/output/struct-field-not-diffable.output.rs

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