@@ -1147,12 +1147,13 @@ where
1147
1147
type In = In ;
1148
1148
type Out = bool ;
1149
1149
1150
- fn combine (
1150
+ fn combine < T > (
1151
1151
input : <Self :: In as SystemInput >:: Inner < ' _ > ,
1152
- a : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < A :: Out , RunSystemError > ,
1153
- b : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < B :: Out , RunSystemError > ,
1152
+ data : & mut T ,
1153
+ a : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < A :: Out , RunSystemError > ,
1154
+ b : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < B :: Out , RunSystemError > ,
1154
1155
) -> Result < Self :: Out , RunSystemError > {
1155
- Ok ( a ( input) ? && b ( input) ?)
1156
+ Ok ( a ( input, data ) ? && b ( input, data ) ?)
1156
1157
}
1157
1158
}
1158
1159
@@ -1168,12 +1169,13 @@ where
1168
1169
type In = In ;
1169
1170
type Out = bool ;
1170
1171
1171
- fn combine (
1172
+ fn combine < T > (
1172
1173
input : <Self :: In as SystemInput >:: Inner < ' _ > ,
1173
- a : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < A :: Out , RunSystemError > ,
1174
- b : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < B :: Out , RunSystemError > ,
1174
+ data : & mut T ,
1175
+ a : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < A :: Out , RunSystemError > ,
1176
+ b : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < B :: Out , RunSystemError > ,
1175
1177
) -> Result < Self :: Out , RunSystemError > {
1176
- Ok ( !( a ( input) ? && b ( input) ?) )
1178
+ Ok ( !( a ( input, data ) ? && b ( input, data ) ?) )
1177
1179
}
1178
1180
}
1179
1181
@@ -1189,12 +1191,13 @@ where
1189
1191
type In = In ;
1190
1192
type Out = bool ;
1191
1193
1192
- fn combine (
1194
+ fn combine < T > (
1193
1195
input : <Self :: In as SystemInput >:: Inner < ' _ > ,
1194
- a : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < A :: Out , RunSystemError > ,
1195
- b : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < B :: Out , RunSystemError > ,
1196
+ data : & mut T ,
1197
+ a : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < A :: Out , RunSystemError > ,
1198
+ b : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < B :: Out , RunSystemError > ,
1196
1199
) -> Result < Self :: Out , RunSystemError > {
1197
- Ok ( !( a ( input) ? || b ( input) ?) )
1200
+ Ok ( !( a ( input, data ) ? || b ( input, data ) ?) )
1198
1201
}
1199
1202
}
1200
1203
@@ -1210,12 +1213,13 @@ where
1210
1213
type In = In ;
1211
1214
type Out = bool ;
1212
1215
1213
- fn combine (
1216
+ fn combine < T > (
1214
1217
input : <Self :: In as SystemInput >:: Inner < ' _ > ,
1215
- a : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < A :: Out , RunSystemError > ,
1216
- b : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < B :: Out , RunSystemError > ,
1218
+ data : & mut T ,
1219
+ a : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < A :: Out , RunSystemError > ,
1220
+ b : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < B :: Out , RunSystemError > ,
1217
1221
) -> Result < Self :: Out , RunSystemError > {
1218
- Ok ( a ( input) ? || b ( input) ?)
1222
+ Ok ( a ( input, data ) ? || b ( input, data ) ?)
1219
1223
}
1220
1224
}
1221
1225
@@ -1231,12 +1235,13 @@ where
1231
1235
type In = In ;
1232
1236
type Out = bool ;
1233
1237
1234
- fn combine (
1238
+ fn combine < T > (
1235
1239
input : <Self :: In as SystemInput >:: Inner < ' _ > ,
1236
- a : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < A :: Out , RunSystemError > ,
1237
- b : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < B :: Out , RunSystemError > ,
1240
+ data : & mut T ,
1241
+ a : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < A :: Out , RunSystemError > ,
1242
+ b : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < B :: Out , RunSystemError > ,
1238
1243
) -> Result < Self :: Out , RunSystemError > {
1239
- Ok ( !( a ( input) ? ^ b ( input) ?) )
1244
+ Ok ( !( a ( input, data ) ? ^ b ( input, data ) ?) )
1240
1245
}
1241
1246
}
1242
1247
@@ -1252,12 +1257,13 @@ where
1252
1257
type In = In ;
1253
1258
type Out = bool ;
1254
1259
1255
- fn combine (
1260
+ fn combine < T > (
1256
1261
input : <Self :: In as SystemInput >:: Inner < ' _ > ,
1257
- a : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < A :: Out , RunSystemError > ,
1258
- b : impl FnOnce ( SystemIn < ' _ , A > ) -> Result < B :: Out , RunSystemError > ,
1262
+ data : & mut T ,
1263
+ a : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < A :: Out , RunSystemError > ,
1264
+ b : impl FnOnce ( SystemIn < ' _ , A > , & mut T ) -> Result < B :: Out , RunSystemError > ,
1259
1265
) -> Result < Self :: Out , RunSystemError > {
1260
- Ok ( a ( input) ? ^ b ( input) ?)
1266
+ Ok ( a ( input, data ) ? ^ b ( input, data ) ?)
1261
1267
}
1262
1268
}
1263
1269
0 commit comments