Struct hecs::PreparedQueryBorrow
source · pub struct PreparedQueryBorrow<'q, Q: Query> { /* private fields */ }
Expand description
Combined borrow of a PreparedQuery
and a World
Implementations§
source§impl<'q, Q: Query> PreparedQueryBorrow<'q, Q>
impl<'q, Q: Query> PreparedQueryBorrow<'q, Q>
sourcepub fn iter<'i>(&'i mut self) -> PreparedQueryIter<'i, Q> ⓘ
pub fn iter<'i>(&'i mut self) -> PreparedQueryIter<'i, Q> ⓘ
Execute the prepared query
sourcepub fn view<'i>(&'i mut self) -> PreparedView<'i, Q>
pub fn view<'i>(&'i mut self) -> PreparedView<'i, Q>
Provides random access to the results of the prepared query