Closed Shelim closed 6 days ago
This issue was fixed on main beforehand, I will be updating to a new release soonTM. Been very busy in real life with traveling with a friend + my birthday.
it now compile time asserts as following:
const {
assert!(
!T::CONTAINS_ANY_TAG_TERM,
"a type provided in the query signature is a Tag and cannot be used with `.each`. use `.run` instead or provide the tag with `.with()`"
);
}
Thank you so much for the issue!
Is there any reason each
cannot be used by tags? Because it is actually a much more problematic issue, in case we're talking of complex dataset of 1,000,000+ entities
run
I need to know the order of the components. I actually can't know if the entities were made in different places with add/removal components in place and so on...with
I need to query for all entities that could contain tag. In my case that mean iterating 100x the results, in case of rare tags (<1% population)
Thank you guys for your awesome work and so far this tool is amazing - but I happen to break stuff a little more :)
MRE Code
Expected result
Second entity should have
is_some
returning trueActual result
Additional info
Crate version:
0.1.3
Platform:Windows 11 x64
When quering for non-tag (ie struct that actually has some fields), the result is correct (
false
thentrue
).