bevy/crates/bevy_ecs/src/system
bilsen 35979922df Fix Option<NonSend<T>> and Option<NonSendMut<T>> (#2757)
# Objective
Fix `Option<NonSend<T>>` to work when T isn't `Send`
Fix `Option<NonSendMut<T>>` to work when T isnt in the world.

## Solution
Simple two row fix, properly initialize T in `OptionNonSendState` and remove `T: Component` bound for `Option<NonSendMut<T>>`
also added a rudimentary test


Co-authored-by: Ïvar Källström <ivar.kallstrom@gmail.com>
2021-08-31 20:52:21 +00:00
..
commands Spawn specific entities: spawn or insert operations, refactor spawn internals, world clearing (#2673) 2021-08-25 23:34:02 +00:00
exclusive_system.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
function_system.rs System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
mod.rs Fix Option<NonSend<T>> and Option<NonSendMut<T>> (#2757) 2021-08-31 20:52:21 +00:00
query.rs System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
system.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
system_chaining.rs Optional .system(), part 6 (chaining) (#2494) 2021-07-17 19:14:18 +00:00
system_param.rs Fix Option<NonSend<T>> and Option<NonSendMut<T>> (#2757) 2021-08-31 20:52:21 +00:00