Skip to content

Commit

Permalink
Merge https://github.com/harudagondi/bevy into allow-iter-combination…
Browse files Browse the repository at this point in the history
…s-on-queries-with-filters
  • Loading branch information
harudagondi committed Jan 13, 2022
2 parents bf7b9ca + 7fd781e commit f832dee
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions crates/bevy_ecs/src/query/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,10 @@ where
}
}

/// Returns an [`Iterator`] over all possible combinations of `K` query results without repetition.
/// This can only be called for read-only queries.
///
/// For permutations of size K of query returning N results, you will get:
/// - if K == N: one permutation of all query results
/// - if K < N: all possible K-sized combinations of query results, without repetition
/// - if K > N: empty set (no K-sized combinations exist)
/// Returns an [`Iterator`] over the query results for the given [`World`] without updating the query's archetypes.
/// Archetypes must be manually updated before by using [`Self::update_archetypes`].
///
/// This can only be called for read-only queries, see [`Self::iter_combinations_mut`] for
/// write-queries.
/// This can only be called for read-only queries.
#[inline]
pub fn iter_manual<'w, 's>(
&'s self,
Expand Down

0 comments on commit f832dee

Please sign in to comment.