MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / iter

Method iter

native/shared/src/handles.rs:64–68  ·  view source on GitHub ↗

Iterate over all live (handle, &T) pairs.

(&self)

Source from the content-addressed store, hash-verified

62
63 /// Iterate over all live (handle, &T) pairs.
64 pub fn iter(&self) -> impl Iterator<Item = (f64, &T)> {
65 self.items.iter().enumerate().filter_map(|(idx, slot)| {
66 slot.as_ref().map(|item| ((idx + 1) as f64, item))
67 })
68 }
69
70 /// Iterate over all live (handle, &mut T) pairs.
71 pub fn iter_mut(&mut self) -> impl Iterator<Item = (f64, &mut T)> {

Callers 15

compute_statsFunction · 0.80
bake_asyncFunction · 0.80
build_bvh_recursiveFunction · 0.80
build_bvhFunction · 0.80
parse_nodeFunction · 0.80
parse_primitiveFunction · 0.80
getMethod · 0.80
alloc_perry_stringFunction · 0.80
bloom_scene_attach_modelFunction · 0.80
attach_meshFunction · 0.80
node_countFunction · 0.80
set_cameraFunction · 0.80

Calls

no outgoing calls