pub struct PreparedQuery1<T: 'static> { /* private fields */ }Expand description
Owner-scoped, reusable single-component query with optional materialized membership.
Implementations§
Source§impl<T: 'static> PreparedQuery1<T>
impl<T: 'static> PreparedQuery1<T>
Sourcepub fn iter<'w, 'c>(
&'w mut self,
world: &'w mut World,
window: QueryWindow<'c>,
) -> Result<Query1<'w, 'c, T>, QueryError>
pub fn iter<'w, 'c>( &'w mut self, world: &'w mut World, window: QueryWindow<'c>, ) -> Result<Query1<'w, 'c, T>, QueryError>
Read iterator over matches for the chosen QueryWindow.
Sourcepub fn for_each_mut(
&mut self,
world: &mut World,
window: QueryWindow<'_>,
f: impl FnMut(EntityId, &mut T) -> Result<(), QueryError>,
) -> Result<(), QueryError>
pub fn for_each_mut( &mut self, world: &mut World, window: QueryWindow<'_>, f: impl FnMut(EntityId, &mut T) -> Result<(), QueryError>, ) -> Result<(), QueryError>
Mutable traversal with callback-scoped borrows over the chosen window.
Sourcepub fn for_each_mut_with_effects(
&mut self,
world: &mut World,
window: QueryWindow<'_>,
f: impl FnMut(EntityId, &mut T, &mut QueryEffects<'_>) -> Result<(), QueryError>,
) -> Result<(), QueryError>
pub fn for_each_mut_with_effects( &mut self, world: &mut World, window: QueryWindow<'_>, f: impl FnMut(EntityId, &mut T, &mut QueryEffects<'_>) -> Result<(), QueryError>, ) -> Result<(), QueryError>
Mutable traversal that may enqueue commands or emit declared events.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for PreparedQuery1<T>
impl<T> !Send for PreparedQuery1<T>
impl<T> !Sync for PreparedQuery1<T>
impl<T> !UnwindSafe for PreparedQuery1<T>
impl<T> Freeze for PreparedQuery1<T>
impl<T> Unpin for PreparedQuery1<T>
impl<T> UnsafeUnpin for PreparedQuery1<T>
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