rs-ecs 0.7.13
“reasonably simple entity component system”
Contains an unbounded block loopRust test marker or harness
SHA-256a5ab764bf36b45cc0b0fd7d8dc2229ecd6832d8146309965673e3ceab2a91537
MaleculeH₂(DbMg)Md(Pa)
Evidence
263:32… tch<'q>>::Item;
264
265 fn next(&mut self) -> Option<Self::Item> {
266 loop {
267 if self.idx != self.len {
268 let val = unsafe { S::Fetch::deref(self.ptr, self.idx) };
269 …
352:14… Iterator for QueryParIterIntoIter<'_, S> where S: QuerySpec {}
353
354#[cfg(test)]
355mod tests {
356 use super::*;
357
358 use crate::{query::Query, world::World};
359
360 struct Pos(#[allow(dead_code)] f32);
361 struct Vel(#[allow(dead_code)] f32);
362
363 fn spawn_two …
424:26… 1>(world);
425 spawn_two::<32>(world);
426 }
427 }
428
429 #[test]
430 fn it_works_with_a_single_archetype() {
431 let mut world = World::new();
⋯4 lines
27:5… .max()
28 .unwrap_or(1);
29
30 let layout = Layout::from_size_align(0, max_align).unwrap();
31 let ptr = invalid_ptr(max_align);
32
33 Self {
34 types: types.0.into(),
35 …
168:9… }
169
170 if self.layout.size() != 0 {
171 dealloc(self.ptr, self.layout);
172 }
173 }
⋯5 lines
No evidence locations were recorded for this file. Raw result