@@ -170,28 +170,28 @@ pub trait ComponentIterBitset<'a, T: HasSchema> {
170170 /// Iterates immutably over the components of this type where `bitset`
171171 /// indicates the indices of entities.
172172 /// Slower than `iter()` but allows joining between multiple component types.
173- fn iter_with_bitset ( & self , bitset : Rc < BitSetVec > ) -> ComponentBitsetIterator < T > ;
173+ fn iter_with_bitset ( & self , bitset : Rc < BitSetVec > ) -> ComponentBitsetIterator < ' _ , T > ;
174174
175175 /// Iterates immutably over the components of this type where `bitset`
176176 /// indicates the indices of entities.
177177 /// Slower than `iter()` but allows joining between multiple component types.
178178 fn iter_with_bitset_optional (
179179 & self ,
180180 bitset : Rc < BitSetVec > ,
181- ) -> ComponentBitsetOptionalIterator < T > ;
181+ ) -> ComponentBitsetOptionalIterator < ' _ , T > ;
182182
183183 /// Iterates mutable over the components of this type where `bitset`
184184 /// indicates the indices of entities.
185185 /// Slower than `iter()` but allows joining between multiple component types.
186- fn iter_mut_with_bitset ( & mut self , bitset : Rc < BitSetVec > ) -> ComponentBitsetIteratorMut < T > ;
186+ fn iter_mut_with_bitset ( & mut self , bitset : Rc < BitSetVec > ) -> ComponentBitsetIteratorMut < ' _ , T > ;
187187
188188 /// Iterates mutably over the components of this type where `bitset`
189189 /// indicates the indices of entities.
190190 /// Slower than `iter()` but allows joining between multiple component types.
191191 fn iter_mut_with_bitset_optional (
192192 & mut self ,
193193 bitset : Rc < BitSetVec > ,
194- ) -> ComponentBitsetOptionalIteratorMut < T > ;
194+ ) -> ComponentBitsetOptionalIteratorMut < ' _ , T > ;
195195
196196 /// Get bitset of [`ComponentStore`] / implementor.
197197 fn bitset ( & self ) -> & BitSetVec ;
@@ -207,7 +207,7 @@ impl<'a, T: HasSchema> ComponentIterBitset<'a, T> for ComponentStore<T> {
207207 /// Gets an immutable reference to the component if there is exactly one instance of it.
208208 fn get_single_with_bitset ( & self , bitset : Rc < BitSetVec > ) -> Result < & T , QuerySingleError > {
209209 // SOUND: we know the schema matches.
210- fn map < T > ( r : SchemaRef ) -> & T {
210+ fn map < T > ( r : SchemaRef < ' _ > ) -> & T {
211211 unsafe { r. cast_into_unchecked ( ) }
212212 }
213213 self . untyped . get_single_with_bitset ( bitset) . map ( map)
@@ -219,7 +219,7 @@ impl<'a, T: HasSchema> ComponentIterBitset<'a, T> for ComponentStore<T> {
219219 bitset : Rc < BitSetVec > ,
220220 ) -> Result < & mut T , QuerySingleError > {
221221 // SOUND: we know the schema matches.
222- fn map < T > ( r : SchemaRefMut ) -> & mut T {
222+ fn map < T > ( r : SchemaRefMut < ' _ > ) -> & mut T {
223223 unsafe { r. cast_into_mut_unchecked ( ) }
224224 }
225225 self . untyped . get_single_with_bitset_mut ( bitset) . map ( map)
@@ -229,9 +229,9 @@ impl<'a, T: HasSchema> ComponentIterBitset<'a, T> for ComponentStore<T> {
229229 /// indicates the indices of entities.
230230 /// Slower than `iter()` but allows joining between multiple component types.
231231 #[ inline]
232- fn iter_with_bitset ( & self , bitset : Rc < BitSetVec > ) -> ComponentBitsetIterator < T > {
232+ fn iter_with_bitset ( & self , bitset : Rc < BitSetVec > ) -> ComponentBitsetIterator < ' _ , T > {
233233 // SOUND: we know the schema matches.
234- fn map < T > ( r : SchemaRef ) -> & T {
234+ fn map < T > ( r : SchemaRef < ' _ > ) -> & T {
235235 unsafe { r. cast_into_unchecked ( ) }
236236 }
237237 self . untyped . iter_with_bitset ( bitset) . map ( map)
@@ -244,9 +244,9 @@ impl<'a, T: HasSchema> ComponentIterBitset<'a, T> for ComponentStore<T> {
244244 fn iter_with_bitset_optional (
245245 & self ,
246246 bitset : Rc < BitSetVec > ,
247- ) -> ComponentBitsetOptionalIterator < T > {
247+ ) -> ComponentBitsetOptionalIterator < ' _ , T > {
248248 // SOUND: we know the schema matches.
249- fn map < T > ( r : Option < SchemaRef > ) -> Option < & T > {
249+ fn map < T > ( r : Option < SchemaRef < ' _ > > ) -> Option < & T > {
250250 r. map ( |r| unsafe { r. cast_into_unchecked ( ) } )
251251 }
252252 self . untyped . iter_with_bitset_optional ( bitset) . map ( map)
@@ -256,9 +256,9 @@ impl<'a, T: HasSchema> ComponentIterBitset<'a, T> for ComponentStore<T> {
256256 /// indicates the indices of entities.
257257 /// Slower than `iter()` but allows joining between multiple component types.
258258 #[ inline]
259- fn iter_mut_with_bitset ( & mut self , bitset : Rc < BitSetVec > ) -> ComponentBitsetIteratorMut < T > {
259+ fn iter_mut_with_bitset ( & mut self , bitset : Rc < BitSetVec > ) -> ComponentBitsetIteratorMut < ' _ , T > {
260260 // SOUND: we know the schema matches.
261- fn map < T > ( r : SchemaRefMut ) -> & mut T {
261+ fn map < T > ( r : SchemaRefMut < ' _ > ) -> & mut T {
262262 unsafe { r. cast_into_mut_unchecked ( ) }
263263 }
264264
@@ -272,9 +272,9 @@ impl<'a, T: HasSchema> ComponentIterBitset<'a, T> for ComponentStore<T> {
272272 fn iter_mut_with_bitset_optional (
273273 & mut self ,
274274 bitset : Rc < BitSetVec > ,
275- ) -> ComponentBitsetOptionalIteratorMut < T > {
275+ ) -> ComponentBitsetOptionalIteratorMut < ' _ , T > {
276276 // SOUND: we know the schema matches.
277- fn map < T > ( r : Option < SchemaRefMut > ) -> Option < & mut T > {
277+ fn map < T > ( r : Option < SchemaRefMut < ' _ > > ) -> Option < & mut T > {
278278 r. map ( |r| unsafe { r. cast_into_mut_unchecked ( ) } )
279279 }
280280 self . untyped . iter_mut_with_bitset_optional ( bitset) . map ( map)
0 commit comments