bevy/crates/bevy_ecs/src
Nathan Ward 19db1e402b [ecs] implement is_empty for queries (#2271)
## Problem
- The `Query` struct does not provide an easy way to check if it is empty. 
- Specifically, users have to use `.iter().peekable()` or `.iter().next().is_none()` which is not very ergonomic. 
- Fixes: #2270 

## Solution
- Implement an `is_empty` function for queries to more easily check if the query is empty.
2021-06-02 20:50:06 +00:00
..
component drop overwritten component data on double insert (#2227) 2021-05-30 20:15:40 +00:00
entity Improve bevy_ecs query docs (#1935) 2021-04-22 19:09:09 +00:00
query [ecs] implement is_empty for queries (#2271) 2021-06-02 20:50:06 +00:00
schedule small ecs cleanup and remove_bundle drop bugfix (#2172) 2021-05-18 19:25:57 +00:00
storage Fixes dropping empty BlobVec (#2295) 2021-06-02 19:08:39 +00:00
system [ecs] implement is_empty for queries (#2271) 2021-06-02 20:50:06 +00:00
world drop overwritten component data on double insert (#2227) 2021-05-30 20:15:40 +00:00
archetype.rs small ecs cleanup and remove_bundle drop bugfix (#2172) 2021-05-18 19:25:57 +00:00
bundle.rs drop overwritten component data on double insert (#2227) 2021-05-30 20:15:40 +00:00
change_detection.rs Refactor ResMut/Mut/ReflectMut to remove duplicated code (#2217) 2021-05-30 19:29:31 +00:00
event.rs [assets] fix Assets being set as 'changed' each frame (#2280) 2021-06-02 02:30:14 +00:00
lib.rs drop overwritten component data on double insert (#2227) 2021-05-30 20:15:40 +00:00
reflect.rs Refactor ResMut/Mut/ReflectMut to remove duplicated code (#2217) 2021-05-30 19:29:31 +00:00