Benign rust 59,244 installs Download

rs-ecs 0.7.13

“reasonably simple entity component system”

Contains an unbounded block loopRust test marker or harness
SHA-256a5ab764bf36b45cc0b0fd7d8dc2229ecd6832d8146309965673e3ceab2a91537

Evidence

Contains an unbounded block loop rayon.rs · lines 263–269
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 …
imports crate::query::Query rayon.rs · lines 352–363
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 …
#[test] attribute rayon.rs · lines 424–435
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
Rust builds heap Layout from computed size archetype.rs · lines 27–35
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 …
Rust calls the global allocator directly archetype.rs · lines 168–178
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

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.