MCPcopy Create free account
hub / github.com/PerroEngine/Perro / remove_parts

Method remove_parts

perro_source/render_stack/perro_graphics/src/resources.rs:49–57  ·  view source on GitHub ↗
(&mut self, index: u32, generation: u32)

Source from the content-addressed store, hash-verified

47 return ((slot + 1) as u32, self.generations[slot]);
48 }
49
50 let slot = self.generations.len();
51 self.generations.push(0);
52 self.occupied.push(true);
53 ((slot + 1) as u32, 0)
54 }
55
56 #[inline]
57 fn contains_parts(&self, index: u32, generation: u32) -> bool {
58 if index == 0 {
59 return false;
60 }

Callers 3

drop_texture_innerMethod · 0.80
drop_mesh_innerMethod · 0.80
drop_material_innerMethod · 0.80

Calls 2

contains_partsMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected