Major refactor to handler traits
Added `IntoGiteratedHandler`, which is the new trait for handler functions. This allows us to finally get rid of the Object and ObjectOperation bounds that resulted in hacks around the newer features of the unified stack. Squashed commit of the following: commit 62e1ecf76ee31cda0bab4602d9d00fa0dc2f9158 Author: Amber <[email protected]> Date: Wed Oct 11 09:31:11 2023 -0500 Update commit dfd2d1b0b5d81ee3bc48f0321c6aceaa677e3b8b Author: Amber <[email protected]> Date: Wed Oct 11 09:31:07 2023 -0500 Major refactor to handler traits Added `IntoGiteratedHandler`, which is the new trait for handler functions. This allows us to finally get rid of the Object and ObjectOperation bounds that resulted in hacks around the newer features of the unified stack. Removed dead and legacy code. I think... commit 57b4b398eff32e69f2f4b9700e42a1277a4d1055 Author: Amber <[email protected]> Date: Sun Oct 1 23:05:10 2023 -0500 New handler trait for giterated stack Refactor the old handler trait so it is more generic and can be used for specific kinds of handlers
parent: tbd commit: 90c4780
1 | use ; |
2 | |
3 | use ; |
4 | use Value; |
5 | |
6 | use crate::; |
7 | |
8 | |
9 | type Object: GiteratedObject; |
10 | |
11 | ; |
12 | |
13 | |
14 | |
15 | |
16 | pub value_name: String, |
17 | |
18 | |
19 | |
20 | |
21 | "get_value" |
22 | |
23 | type Success = Value; |
24 | type Failure = GetValueError; |
25 | |
26 | |
27 | |
28 | |
29 | pub ty: , |
30 | |
31 | |
32 | |
33 | for GetValueTyped |
34 | |
35 | |
36 | "get_value" |
37 | |
38 | type Success = V; |
39 | type Failure = GetValueError; |
40 | |
41 | |
42 | |
43 | |
44 | |
45 | value: Value, |
46 | #[serde(skip)] |
47 | _marker: , |
48 | |
49 | |
50 | |
51 | pub unsafe |
52 | Self |
53 | value, |
54 | _marker: Default default, |
55 | |
56 | |
57 | |
58 | |
59 | self.value |
60 | |
61 | |
62 | |
63 | |
64 | type Object = O; |
65 | |
66 | |
67 | todo! |
68 | |
69 | |
70 |