@@ -200,6 +200,7 @@ unsafe impl WorldEntityFetch for Entity {
200
200
type Mut < ' w > = EntityWorldMut < ' w > ;
201
201
type DeferredMut < ' w > = EntityMut < ' w > ;
202
202
203
+ #[ inline]
203
204
unsafe fn fetch_ref (
204
205
self ,
205
206
cell : UnsafeWorldCell < ' _ > ,
@@ -209,6 +210,7 @@ unsafe impl WorldEntityFetch for Entity {
209
210
Ok ( unsafe { EntityRef :: new ( ecell) } )
210
211
}
211
212
213
+ #[ inline]
212
214
unsafe fn fetch_mut (
213
215
self ,
214
216
cell : UnsafeWorldCell < ' _ > ,
@@ -223,6 +225,7 @@ unsafe impl WorldEntityFetch for Entity {
223
225
Ok ( unsafe { EntityWorldMut :: new ( world, self , location) } )
224
226
}
225
227
228
+ #[ inline]
226
229
unsafe fn fetch_deferred_mut (
227
230
self ,
228
231
cell : UnsafeWorldCell < ' _ > ,
@@ -242,20 +245,23 @@ unsafe impl<const N: usize> WorldEntityFetch for [Entity; N] {
242
245
type Mut < ' w > = [ EntityMut < ' w > ; N ] ;
243
246
type DeferredMut < ' w > = [ EntityMut < ' w > ; N ] ;
244
247
248
+ #[ inline]
245
249
unsafe fn fetch_ref (
246
250
self ,
247
251
cell : UnsafeWorldCell < ' _ > ,
248
252
) -> Result < Self :: Ref < ' _ > , EntityDoesNotExistError > {
249
253
<& Self >:: fetch_ref ( & self , cell)
250
254
}
251
255
256
+ #[ inline]
252
257
unsafe fn fetch_mut (
253
258
self ,
254
259
cell : UnsafeWorldCell < ' _ > ,
255
260
) -> Result < Self :: Mut < ' _ > , EntityMutableFetchError > {
256
261
<& Self >:: fetch_mut ( & self , cell)
257
262
}
258
263
264
+ #[ inline]
259
265
unsafe fn fetch_deferred_mut (
260
266
self ,
261
267
cell : UnsafeWorldCell < ' _ > ,
@@ -273,6 +279,7 @@ unsafe impl<const N: usize> WorldEntityFetch for &'_ [Entity; N] {
273
279
type Mut < ' w > = [ EntityMut < ' w > ; N ] ;
274
280
type DeferredMut < ' w > = [ EntityMut < ' w > ; N ] ;
275
281
282
+ #[ inline]
276
283
unsafe fn fetch_ref (
277
284
self ,
278
285
cell : UnsafeWorldCell < ' _ > ,
@@ -290,6 +297,7 @@ unsafe impl<const N: usize> WorldEntityFetch for &'_ [Entity; N] {
290
297
Ok ( refs)
291
298
}
292
299
300
+ #[ inline]
293
301
unsafe fn fetch_mut (
294
302
self ,
295
303
cell : UnsafeWorldCell < ' _ > ,
@@ -316,6 +324,7 @@ unsafe impl<const N: usize> WorldEntityFetch for &'_ [Entity; N] {
316
324
Ok ( refs)
317
325
}
318
326
327
+ #[ inline]
319
328
unsafe fn fetch_deferred_mut (
320
329
self ,
321
330
cell : UnsafeWorldCell < ' _ > ,
@@ -335,6 +344,7 @@ unsafe impl WorldEntityFetch for &'_ [Entity] {
335
344
type Mut < ' w > = Vec < EntityMut < ' w > > ;
336
345
type DeferredMut < ' w > = Vec < EntityMut < ' w > > ;
337
346
347
+ #[ inline]
338
348
unsafe fn fetch_ref (
339
349
self ,
340
350
cell : UnsafeWorldCell < ' _ > ,
@@ -349,6 +359,7 @@ unsafe impl WorldEntityFetch for &'_ [Entity] {
349
359
Ok ( refs)
350
360
}
351
361
362
+ #[ inline]
352
363
unsafe fn fetch_mut (
353
364
self ,
354
365
cell : UnsafeWorldCell < ' _ > ,
@@ -372,6 +383,7 @@ unsafe impl WorldEntityFetch for &'_ [Entity] {
372
383
Ok ( refs)
373
384
}
374
385
386
+ #[ inline]
375
387
unsafe fn fetch_deferred_mut (
376
388
self ,
377
389
cell : UnsafeWorldCell < ' _ > ,
@@ -391,6 +403,7 @@ unsafe impl WorldEntityFetch for &'_ EntityHashSet {
391
403
type Mut < ' w > = EntityHashMap < EntityMut < ' w > > ;
392
404
type DeferredMut < ' w > = EntityHashMap < EntityMut < ' w > > ;
393
405
406
+ #[ inline]
394
407
unsafe fn fetch_ref (
395
408
self ,
396
409
cell : UnsafeWorldCell < ' _ > ,
@@ -404,6 +417,7 @@ unsafe impl WorldEntityFetch for &'_ EntityHashSet {
404
417
Ok ( refs)
405
418
}
406
419
420
+ #[ inline]
407
421
unsafe fn fetch_mut (
408
422
self ,
409
423
cell : UnsafeWorldCell < ' _ > ,
@@ -417,6 +431,7 @@ unsafe impl WorldEntityFetch for &'_ EntityHashSet {
417
431
Ok ( refs)
418
432
}
419
433
434
+ #[ inline]
420
435
unsafe fn fetch_deferred_mut (
421
436
self ,
422
437
cell : UnsafeWorldCell < ' _ > ,
0 commit comments