Skip to content

Commit

Permalink
Rename AccessFilter::get_ methods to contain_
Browse files Browse the repository at this point in the history
  • Loading branch information
WinstonHartnett committed Nov 17, 2023
1 parent 4af2daa commit 04b8281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/query/access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,13 +483,13 @@ impl<T: SparseSetIndex> AccessFilters<T> {

/// Returns whether a `With` constraint exists for `index`.
#[inline]
pub fn get_with(&self, index: T) -> bool {
pub fn contains_with(&self, index: T) -> bool {
self.with.contains(index.sparse_set_index())
}

/// Returns whether a `Without` constraint exists for `index`.
#[inline]
pub fn get_without(&self, index: T) -> bool {
pub fn contains_without(&self, index: T) -> bool {
self.without.contains(index.sparse_set_index())
}

Expand Down

0 comments on commit 04b8281

Please sign in to comment.