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§
Auto Trait Implementations§
impl<'q, Q> Freeze for QueryMut<'q, Q>
impl<'q, Q> RefUnwindSafe for QueryMut<'q, Q>
impl<'q, Q> Send for QueryMut<'q, Q>
impl<'q, Q> Sync for QueryMut<'q, Q>
impl<'q, Q> Unpin for QueryMut<'q, Q>
impl<'q, Q> UnwindSafe for QueryMut<'q, Q>
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more