@@ -17,7 +17,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
17
17
. overwrite_script_function (
18
18
"clone" ,
19
19
|_self : Ref < bevy:: time:: prelude:: Fixed > | {
20
- let output: Val < bevy:: time:: prelude:: Fixed > = :: bevy:: time:: prelude:: Fixed :: clone (
20
+ let output: Val < bevy:: time:: prelude:: Fixed > = < bevy:: time:: prelude:: Fixed as std :: clone :: Clone > :: clone (
21
21
& _self,
22
22
)
23
23
. into ( ) ;
@@ -28,7 +28,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
28
28
. overwrite_script_function (
29
29
"clone" ,
30
30
|_self : Ref < bevy:: time:: prelude:: Real > | {
31
- let output: Val < bevy:: time:: prelude:: Real > = :: bevy:: time:: prelude:: Real :: clone (
31
+ let output: Val < bevy:: time:: prelude:: Real > = < bevy:: time:: prelude:: Real as std :: clone :: Clone > :: clone (
32
32
& _self,
33
33
)
34
34
. into ( ) ;
@@ -39,7 +39,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
39
39
. overwrite_script_function (
40
40
"assert_receiver_is_total_eq" ,
41
41
|_self : Ref < bevy:: time:: prelude:: Timer > | {
42
- let output: ( ) = :: bevy:: time:: prelude:: Timer :: assert_receiver_is_total_eq (
42
+ let output: ( ) = < bevy:: time:: prelude:: Timer as std :: cmp :: Eq > :: assert_receiver_is_total_eq (
43
43
& _self,
44
44
)
45
45
. into ( ) ;
@@ -49,7 +49,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
49
49
. overwrite_script_function (
50
50
"from_seconds" ,
51
51
|duration : f32 , mode : Val < bevy:: time:: prelude:: TimerMode > | {
52
- let output: Val < bevy:: time:: prelude:: Timer > = :: bevy:: time:: prelude:: Timer :: from_seconds (
52
+ let output: Val < bevy:: time:: prelude:: Timer > = bevy:: time:: prelude:: Timer :: from_seconds (
53
53
duration,
54
54
mode. into_inner ( ) ,
55
55
)
@@ -60,33 +60,31 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
60
60
. overwrite_script_function (
61
61
"finished" ,
62
62
|_self : Ref < bevy:: time:: prelude:: Timer > | {
63
- let output: bool = :: bevy:: time:: prelude:: Timer :: finished ( & _self)
63
+ let output: bool = bevy:: time:: prelude:: Timer :: finished ( & _self)
64
64
. into ( ) ;
65
65
output
66
66
} ,
67
67
)
68
68
. overwrite_script_function (
69
69
"just_finished" ,
70
70
|_self : Ref < bevy:: time:: prelude:: Timer > | {
71
- let output: bool = :: bevy:: time:: prelude:: Timer :: just_finished (
72
- & _self,
73
- )
71
+ let output: bool = bevy:: time:: prelude:: Timer :: just_finished ( & _self)
74
72
. into ( ) ;
75
73
output
76
74
} ,
77
75
)
78
76
. overwrite_script_function (
79
77
"elapsed_secs" ,
80
78
|_self : Ref < bevy:: time:: prelude:: Timer > | {
81
- let output: f32 = :: bevy:: time:: prelude:: Timer :: elapsed_secs ( & _self)
79
+ let output: f32 = bevy:: time:: prelude:: Timer :: elapsed_secs ( & _self)
82
80
. into ( ) ;
83
81
output
84
82
} ,
85
83
)
86
84
. overwrite_script_function (
87
85
"elapsed_secs_f64" ,
88
86
|_self : Ref < bevy:: time:: prelude:: Timer > | {
89
- let output: f64 = :: bevy:: time:: prelude:: Timer :: elapsed_secs_f64 (
87
+ let output: f64 = bevy:: time:: prelude:: Timer :: elapsed_secs_f64 (
90
88
& _self,
91
89
)
92
90
. into ( ) ;
@@ -96,7 +94,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
96
94
. overwrite_script_function (
97
95
"mode" ,
98
96
|_self : Ref < bevy:: time:: prelude:: Timer > | {
99
- let output: Val < bevy:: time:: prelude:: TimerMode > = :: bevy:: time:: prelude:: Timer :: mode (
97
+ let output: Val < bevy:: time:: prelude:: TimerMode > = bevy:: time:: prelude:: Timer :: mode (
100
98
& _self,
101
99
)
102
100
. into ( ) ;
@@ -109,7 +107,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
109
107
mut _self : Mut < bevy:: time:: prelude:: Timer > ,
110
108
mode : Val < bevy:: time:: prelude:: TimerMode > |
111
109
{
112
- let output: ( ) = :: bevy:: time:: prelude:: Timer :: set_mode (
110
+ let output: ( ) = bevy:: time:: prelude:: Timer :: set_mode (
113
111
& mut _self,
114
112
mode. into_inner ( ) ,
115
113
)
@@ -120,47 +118,46 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
120
118
. overwrite_script_function (
121
119
"pause" ,
122
120
|mut _self : Mut < bevy:: time:: prelude:: Timer > | {
123
- let output: ( ) = :: bevy:: time:: prelude:: Timer :: pause ( & mut _self)
121
+ let output: ( ) = bevy:: time:: prelude:: Timer :: pause ( & mut _self)
124
122
. into ( ) ;
125
123
output
126
124
} ,
127
125
)
128
126
. overwrite_script_function (
129
127
"unpause" ,
130
128
|mut _self : Mut < bevy:: time:: prelude:: Timer > | {
131
- let output: ( ) = :: bevy:: time:: prelude:: Timer :: unpause ( & mut _self)
129
+ let output: ( ) = bevy:: time:: prelude:: Timer :: unpause ( & mut _self)
132
130
. into ( ) ;
133
131
output
134
132
} ,
135
133
)
136
134
. overwrite_script_function (
137
135
"paused" ,
138
136
|_self : Ref < bevy:: time:: prelude:: Timer > | {
139
- let output: bool = :: bevy:: time:: prelude:: Timer :: paused ( & _self)
140
- . into ( ) ;
137
+ let output: bool = bevy:: time:: prelude:: Timer :: paused ( & _self) . into ( ) ;
141
138
output
142
139
} ,
143
140
)
144
141
. overwrite_script_function (
145
142
"reset" ,
146
143
|mut _self : Mut < bevy:: time:: prelude:: Timer > | {
147
- let output: ( ) = :: bevy:: time:: prelude:: Timer :: reset ( & mut _self)
144
+ let output: ( ) = bevy:: time:: prelude:: Timer :: reset ( & mut _self)
148
145
. into ( ) ;
149
146
output
150
147
} ,
151
148
)
152
149
. overwrite_script_function (
153
150
"fraction" ,
154
151
|_self : Ref < bevy:: time:: prelude:: Timer > | {
155
- let output: f32 = :: bevy:: time:: prelude:: Timer :: fraction ( & _self)
152
+ let output: f32 = bevy:: time:: prelude:: Timer :: fraction ( & _self)
156
153
. into ( ) ;
157
154
output
158
155
} ,
159
156
)
160
157
. overwrite_script_function (
161
158
"fraction_remaining" ,
162
159
|_self : Ref < bevy:: time:: prelude:: Timer > | {
163
- let output: f32 = :: bevy:: time:: prelude:: Timer :: fraction_remaining (
160
+ let output: f32 = bevy:: time:: prelude:: Timer :: fraction_remaining (
164
161
& _self,
165
162
)
166
163
. into ( ) ;
@@ -170,17 +167,15 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
170
167
. overwrite_script_function (
171
168
"remaining_secs" ,
172
169
|_self : Ref < bevy:: time:: prelude:: Timer > | {
173
- let output: f32 = :: bevy:: time:: prelude:: Timer :: remaining_secs (
174
- & _self,
175
- )
170
+ let output: f32 = bevy:: time:: prelude:: Timer :: remaining_secs ( & _self)
176
171
. into ( ) ;
177
172
output
178
173
} ,
179
174
)
180
175
. overwrite_script_function (
181
176
"times_finished_this_tick" ,
182
177
|_self : Ref < bevy:: time:: prelude:: Timer > | {
183
- let output: u32 = :: bevy:: time:: prelude:: Timer :: times_finished_this_tick (
178
+ let output: u32 = bevy:: time:: prelude:: Timer :: times_finished_this_tick (
184
179
& _self,
185
180
)
186
181
. into ( ) ;
@@ -190,7 +185,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
190
185
. overwrite_script_function (
191
186
"clone" ,
192
187
|_self : Ref < bevy:: time:: prelude:: Timer > | {
193
- let output: Val < bevy:: time:: prelude:: Timer > = :: bevy:: time:: prelude:: Timer :: clone (
188
+ let output: Val < bevy:: time:: prelude:: Timer > = < bevy:: time:: prelude:: Timer as std :: clone :: Clone > :: clone (
194
189
& _self,
195
190
)
196
191
. into ( ) ;
@@ -203,7 +198,9 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
203
198
_self : Ref < bevy:: time:: prelude:: Timer > ,
204
199
other : Ref < bevy:: time:: prelude:: Timer > |
205
200
{
206
- let output: bool = :: bevy:: time:: prelude:: Timer :: eq ( & _self, & other)
201
+ let output: bool = <bevy:: time:: prelude:: Timer as std:: cmp:: PartialEq <
202
+ bevy:: time:: prelude:: Timer ,
203
+ > >:: eq ( & _self, & other)
207
204
. into ( ) ;
208
205
output
209
206
} ,
@@ -215,18 +212,17 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
215
212
_self : Ref < bevy:: time:: prelude:: TimerMode > ,
216
213
other : Ref < bevy:: time:: prelude:: TimerMode > |
217
214
{
218
- let output: bool = :: bevy:: time:: prelude:: TimerMode :: eq (
219
- & _self,
220
- & other,
221
- )
215
+ let output: bool = <bevy:: time:: prelude:: TimerMode as std:: cmp:: PartialEq <
216
+ bevy:: time:: prelude:: TimerMode ,
217
+ > >:: eq ( & _self, & other)
222
218
. into ( ) ;
223
219
output
224
220
} ,
225
221
)
226
222
. overwrite_script_function (
227
223
"assert_receiver_is_total_eq" ,
228
224
|_self : Ref < bevy:: time:: prelude:: TimerMode > | {
229
- let output: ( ) = :: bevy:: time:: prelude:: TimerMode :: assert_receiver_is_total_eq (
225
+ let output: ( ) = < bevy:: time:: prelude:: TimerMode as std :: cmp :: Eq > :: assert_receiver_is_total_eq (
230
226
& _self,
231
227
)
232
228
. into ( ) ;
@@ -236,7 +232,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
236
232
. overwrite_script_function (
237
233
"clone" ,
238
234
|_self : Ref < bevy:: time:: prelude:: TimerMode > | {
239
- let output: Val < bevy:: time:: prelude:: TimerMode > = :: bevy:: time:: prelude:: TimerMode :: clone (
235
+ let output: Val < bevy:: time:: prelude:: TimerMode > = < bevy:: time:: prelude:: TimerMode as std :: clone :: Clone > :: clone (
240
236
& _self,
241
237
)
242
238
. into ( ) ;
@@ -247,7 +243,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
247
243
. overwrite_script_function (
248
244
"clone" ,
249
245
|_self : Ref < bevy:: time:: prelude:: Virtual > | {
250
- let output: Val < bevy:: time:: prelude:: Virtual > = :: bevy:: time:: prelude:: Virtual :: clone (
246
+ let output: Val < bevy:: time:: prelude:: Virtual > = < bevy:: time:: prelude:: Virtual as std :: clone :: Clone > :: clone (
251
247
& _self,
252
248
)
253
249
. into ( ) ;
@@ -258,7 +254,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
258
254
. overwrite_script_function (
259
255
"assert_receiver_is_total_eq" ,
260
256
|_self : Ref < bevy:: time:: Stopwatch > | {
261
- let output: ( ) = :: bevy:: time:: Stopwatch :: assert_receiver_is_total_eq (
257
+ let output: ( ) = < bevy:: time:: Stopwatch as std :: cmp :: Eq > :: assert_receiver_is_total_eq (
262
258
& _self,
263
259
)
264
260
. into ( ) ;
@@ -268,67 +264,68 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
268
264
. overwrite_script_function (
269
265
"new" ,
270
266
|| {
271
- let output: Val < bevy:: time:: Stopwatch > = :: bevy:: time:: Stopwatch :: new ( )
267
+ let output: Val < bevy:: time:: Stopwatch > = bevy:: time:: Stopwatch :: new ( )
272
268
. into ( ) ;
273
269
output
274
270
} ,
275
271
)
276
272
. overwrite_script_function (
277
273
"elapsed_secs" ,
278
274
|_self : Ref < bevy:: time:: Stopwatch > | {
279
- let output: f32 = :: bevy:: time:: Stopwatch :: elapsed_secs ( & _self)
280
- . into ( ) ;
275
+ let output: f32 = bevy:: time:: Stopwatch :: elapsed_secs ( & _self) . into ( ) ;
281
276
output
282
277
} ,
283
278
)
284
279
. overwrite_script_function (
285
280
"elapsed_secs_f64" ,
286
281
|_self : Ref < bevy:: time:: Stopwatch > | {
287
- let output: f64 = :: bevy:: time:: Stopwatch :: elapsed_secs_f64 ( & _self)
282
+ let output: f64 = bevy:: time:: Stopwatch :: elapsed_secs_f64 ( & _self)
288
283
. into ( ) ;
289
284
output
290
285
} ,
291
286
)
292
287
. overwrite_script_function (
293
288
"pause" ,
294
289
|mut _self : Mut < bevy:: time:: Stopwatch > | {
295
- let output: ( ) = :: bevy:: time:: Stopwatch :: pause ( & mut _self) . into ( ) ;
290
+ let output: ( ) = bevy:: time:: Stopwatch :: pause ( & mut _self) . into ( ) ;
296
291
output
297
292
} ,
298
293
)
299
294
. overwrite_script_function (
300
295
"unpause" ,
301
296
|mut _self : Mut < bevy:: time:: Stopwatch > | {
302
- let output: ( ) = :: bevy:: time:: Stopwatch :: unpause ( & mut _self) . into ( ) ;
297
+ let output: ( ) = bevy:: time:: Stopwatch :: unpause ( & mut _self) . into ( ) ;
303
298
output
304
299
} ,
305
300
)
306
301
. overwrite_script_function (
307
302
"is_paused" ,
308
303
|_self : Ref < bevy:: time:: Stopwatch > | {
309
- let output: bool = :: bevy:: time:: Stopwatch :: is_paused ( & _self) . into ( ) ;
304
+ let output: bool = bevy:: time:: Stopwatch :: is_paused ( & _self) . into ( ) ;
310
305
output
311
306
} ,
312
307
)
313
308
. overwrite_script_function (
314
309
"reset" ,
315
310
|mut _self : Mut < bevy:: time:: Stopwatch > | {
316
- let output: ( ) = :: bevy:: time:: Stopwatch :: reset ( & mut _self) . into ( ) ;
311
+ let output: ( ) = bevy:: time:: Stopwatch :: reset ( & mut _self) . into ( ) ;
317
312
output
318
313
} ,
319
314
)
320
315
. overwrite_script_function (
321
316
"eq" ,
322
317
|_self : Ref < bevy:: time:: Stopwatch > , other : Ref < bevy:: time:: Stopwatch > | {
323
- let output: bool = :: bevy:: time:: Stopwatch :: eq ( & _self, & other)
318
+ let output: bool = <bevy:: time:: Stopwatch as std:: cmp:: PartialEq <
319
+ bevy:: time:: Stopwatch ,
320
+ > >:: eq ( & _self, & other)
324
321
. into ( ) ;
325
322
output
326
323
} ,
327
324
)
328
325
. overwrite_script_function (
329
326
"clone" ,
330
327
|_self : Ref < bevy:: time:: Stopwatch > | {
331
- let output: Val < bevy:: time:: Stopwatch > = :: bevy:: time:: Stopwatch :: clone (
328
+ let output: Val < bevy:: time:: Stopwatch > = < bevy:: time:: Stopwatch as std :: clone :: Clone > :: clone (
332
329
& _self,
333
330
)
334
331
. into ( ) ;
0 commit comments