File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -858,10 +858,10 @@ impl<Trait: ?Sized + TraitQuery> QueryFilter for WithOne<Trait> {
858
858
859
859
/// [`WorldQuery`] filter for entities without any [one](crate::One) component
860
860
/// implementing a trait.
861
- pub struct WithoutOne < Trait : ?Sized + TraitQuery > ( PhantomData < & ' static Trait > ) ;
861
+ pub struct WithoutAny < Trait : ?Sized + TraitQuery > ( PhantomData < & ' static Trait > ) ;
862
862
863
863
// this takes inspiration from `With` in bevy's main repo
864
- unsafe impl < Trait : ?Sized + TraitQuery > WorldQuery for WithoutOne < Trait > {
864
+ unsafe impl < Trait : ?Sized + TraitQuery > WorldQuery for WithoutAny < Trait > {
865
865
type Item < ' w > = ( ) ;
866
866
type Fetch < ' w > = ( ) ;
867
867
type State = TraitQueryState < Trait > ;
@@ -937,7 +937,7 @@ unsafe impl<Trait: ?Sized + TraitQuery> WorldQuery for WithoutOne<Trait> {
937
937
}
938
938
939
939
/// SAFETY: read-only access
940
- impl < Trait : ?Sized + TraitQuery > QueryFilter for WithoutOne < Trait > {
940
+ impl < Trait : ?Sized + TraitQuery > QueryFilter for WithoutAny < Trait > {
941
941
const IS_ARCHETYPAL : bool = false ;
942
942
unsafe fn filter_fetch (
943
943
_fetch : & mut Self :: Fetch < ' _ > ,
Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ fn without_any_filter() {
563
563
564
564
// Prints the entity id of every Entity where none of its components implement the trait
565
565
fn print_without_any_filter_info (
566
- people : Query < Entity , WithoutOne < dyn Person > > ,
566
+ people : Query < Entity , WithoutAny < dyn Person > > ,
567
567
mut output : ResMut < Output > ,
568
568
) {
569
569
output
You can’t perform that action at this time.
0 commit comments