summaryrefslogtreecommitdiff
path: root/ecs/src/query/term.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-04-04 17:47:53 +0200
committerHampusM <hampus@hampusmat.com>2025-04-04 17:47:53 +0200
commit523d13eec4778bb0d5e25416f09f2e5f7fc27ca7 (patch)
tree5b7f6d336c0a0ef171b058e5e28f655c92b9900a /ecs/src/query/term.rs
parentad2877956935375d74d0a0255dcf207c1673801c (diff)
perf(ecs): always store query terms on stackHEADmaster
Diffstat (limited to 'ecs/src/query/term.rs')
-rw-r--r--ecs/src/query/term.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/ecs/src/query/term.rs b/ecs/src/query/term.rs
index 7f24147..ce453f0 100644
--- a/ecs/src/query/term.rs
+++ b/ecs/src/query/term.rs
@@ -14,7 +14,9 @@ impl<ComponentT> TermWithoutField for With<ComponentT>
where
ComponentT: Component,
{
- fn apply_to_terms_builder(terms_builder: &mut TermsBuilder<'_>)
+ fn apply_to_terms_builder<const MAX_TERM_CNT: usize>(
+ terms_builder: &mut TermsBuilder<MAX_TERM_CNT>,
+ )
{
terms_builder.with::<ComponentT>();
}
@@ -31,7 +33,9 @@ impl<ComponentT> TermWithoutField for Without<ComponentT>
where
ComponentT: Component,
{
- fn apply_to_terms_builder(terms_builder: &mut TermsBuilder<'_>)
+ fn apply_to_terms_builder<const MAX_TERM_CNT: usize>(
+ terms_builder: &mut TermsBuilder<MAX_TERM_CNT>,
+ )
{
terms_builder.without::<ComponentT>();
}