From 8adf787bca7744344b83dace7997031b07785a25 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 6 Jun 2024 22:27:03 +0200 Subject: refactor(ecs): rename tuple filter to tuple reduce --- ecs/src/system/stateful.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ecs/src/system') diff --git a/ecs/src/system/stateful.rs b/ecs/src/system/stateful.rs index 8d56a13..e74c0ee 100644 --- a/ecs/src/system/stateful.rs +++ b/ecs/src/system/stateful.rs @@ -9,9 +9,9 @@ use crate::lock::Lock; use crate::system::util::check_params_are_compatible; use crate::system::{ComponentRefMut, Into as IntoSystem, Param, System, TypeErased}; use crate::tuple::{ - Filter as TupleFilter, - FilterExclude as TupleFilterExclude, IntoInOptions as TupleIntoInOptions, + Reduce as TupleReduce, + ReduceNoOp as TupleReduceNoOp, TakeOptionElementResult as TupleTakeOptionElementResult, WithOptionElements as TupleWithOptionElements, }; @@ -33,10 +33,10 @@ macro_rules! impl_system { Func: Fn(#(TParam~I,)*) + Copy + RefUnwindSafe + UnwindSafe + 'static, #(TParam~I: Param<'world>,)* #(TParam~I::Input: 'static,)* - (#(TParam~I::Input,)*): TupleFilter, - <(#(TParam~I::Input,)*) as TupleFilter>::Out: TupleIntoInOptions + (#(TParam~I::Input,)*): TupleReduce, + <(#(TParam~I::Input,)*) as TupleReduce>::Out: TupleIntoInOptions { - type Input = <(#(TParam~I::Input,)*) as TupleFilter>::Out; + type Input = <(#(TParam~I::Input,)*) as TupleReduce>::Out; fn initialize(mut self, input: Self::Input) -> Self { @@ -44,7 +44,7 @@ macro_rules! impl_system { #( if TypeId::of::() != - TypeId::of::() + TypeId::of::() { let input = match option_input.take::() { TupleTakeOptionElementResult::Found(input) => input, -- cgit v1.2.3-18-g5258