Struct oxygengine_core::ecs::pipeline::QueryMut
source · pub struct QueryMut<'q, Q>where
Q: Query,{ /* private fields */ }
Expand description
A query builder that’s convertible directly into an iterator
Implementations§
source§impl<'q, Q> QueryMut<'q, Q>where
Q: Query,
impl<'q, Q> QueryMut<'q, Q>where Q: Query,
sourcepub fn with<R>(self) -> QueryMut<'q, With<Q, R>>where
R: Query,
pub fn with<R>(self) -> QueryMut<'q, With<Q, R>>where R: Query,
Transform the query into one that requires another query be satisfied
See QueryBorrow::with
sourcepub fn without<R>(self) -> QueryMut<'q, Without<Q, R>>where
R: Query,
pub fn without<R>(self) -> QueryMut<'q, Without<Q, R>>where R: Query,
Transform the query into one that skips entities satisfying another
See QueryBorrow::without
sourcepub fn into_iter_batched(self, batch_size: u32) -> BatchedIter<'q, Q> ⓘ
pub fn into_iter_batched(self, batch_size: u32) -> BatchedIter<'q, Q> ⓘ
Like into_iter
, but returns child iterators of at most batch_size
elements
Useful for distributing work over a threadpool.
Trait Implementations§
source§impl<'q, Q> IntoIterator for QueryMut<'q, Q>where
Q: Query,
impl<'q, Q> IntoIterator for QueryMut<'q, Q>where Q: Query,
Auto Trait Implementations§
impl<'q, Q> RefUnwindSafe for QueryMut<'q, Q>where <Q as Query>::Fetch: RefUnwindSafe,
impl<'q, Q> Send for QueryMut<'q, Q>where <Q as Query>::Item<'a>: for<'a> Send,
impl<'q, Q> Sync for QueryMut<'q, Q>where <Q as Query>::Item<'a>: for<'a> Send,
impl<'q, Q> Unpin for QueryMut<'q, Q>where <Q as Query>::Fetch: Unpin,
impl<'q, Q> UnwindSafe for QueryMut<'q, Q>where <Q as Query>::Fetch: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more