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 @@ -853,10 +853,10 @@ impl<Trait: ?Sized + TraitQuery> QueryFilter for WithOne<Trait> {
853
853
854
854
/// [`WorldQuery`] filter for entities without any [one](crate::One) component
855
855
/// implementing a trait.
856
- pub struct WithoutOne < Trait : ?Sized + TraitQuery > ( PhantomData < & ' static Trait > ) ;
856
+ pub struct WithoutAny < Trait : ?Sized + TraitQuery > ( PhantomData < & ' static Trait > ) ;
857
857
858
858
// this takes inspiration from `With` in bevy's main repo
859
- unsafe impl < Trait : ?Sized + TraitQuery > WorldQuery for WithoutOne < Trait > {
859
+ unsafe impl < Trait : ?Sized + TraitQuery > WorldQuery for WithoutAny < Trait > {
860
860
type Item < ' w > = ( ) ;
861
861
type Fetch < ' w > = ( ) ;
862
862
type State = TraitQueryState < Trait > ;
@@ -932,7 +932,7 @@ unsafe impl<Trait: ?Sized + TraitQuery> WorldQuery for WithoutOne<Trait> {
932
932
}
933
933
934
934
/// SAFETY: read-only access
935
- impl < Trait : ?Sized + TraitQuery > QueryFilter for WithoutOne < Trait > {
935
+ impl < Trait : ?Sized + TraitQuery > QueryFilter for WithoutAny < Trait > {
936
936
const IS_ARCHETYPAL : bool = false ;
937
937
unsafe fn filter_fetch (
938
938
_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