Struct oxygengine_core::ecs::pipeline::PreparedQueryBorrow
source · [−]pub struct PreparedQueryBorrow<'q, Q>where
Q: Query,{ /* private fields */ }
Expand description
Combined borrow of a PreparedQuery
and a World
Implementations
sourceimpl<'q, Q> PreparedQueryBorrow<'q, Q>where
Q: Query,
impl<'q, Q> PreparedQueryBorrow<'q, Q>where
Q: Query,
sourcepub fn iter(&'i mut self) -> PreparedQueryIter<'i, Q>ⓘNotable traits for PreparedQueryIter<'q, Q>impl<'q, Q> Iterator for PreparedQueryIter<'q, Q>where
Q: Query, type Item = (Entity, <<Q as Query>::Fetch as Fetch<'q>>::Item);
pub fn iter(&'i mut self) -> PreparedQueryIter<'i, Q>ⓘNotable traits for PreparedQueryIter<'q, Q>impl<'q, Q> Iterator for PreparedQueryIter<'q, Q>where
Q: Query, type Item = (Entity, <<Q as Query>::Fetch as Fetch<'q>>::Item);
Q: Query, type Item = (Entity, <<Q as Query>::Fetch as Fetch<'q>>::Item);
Execute the prepared query
sourcepub fn view(&'i mut self) -> PreparedView<'i, Q>
pub fn view(&'i mut self) -> PreparedView<'i, Q>
Provides random access to the results of the prepared query
Trait Implementations
Auto Trait Implementations
impl<'q, Q> RefUnwindSafe for PreparedQueryBorrow<'q, Q>where
<Q as Query>::Fetch: RefUnwindSafe,
<<Q as Query>::Fetch as Fetch<'static>>::State: RefUnwindSafe,
impl<'q, Q> !Send for PreparedQueryBorrow<'q, Q>
impl<'q, Q> !Sync for PreparedQueryBorrow<'q, Q>
impl<'q, Q> Unpin for PreparedQueryBorrow<'q, Q>
impl<'q, Q> !UnwindSafe for PreparedQueryBorrow<'q, Q>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more