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

Function with

native/watchos/src/scene.rs:160–166  ·  view source on GitHub ↗
(f: F)

Source from the content-addressed store, hash-verified

158});
159
160fn with<F, R>(f: F) -> R where F: FnOnce(&mut Inner) -> R {
161 let mut g = INNER.lock().unwrap();
162 if g.nodes.is_empty() {
163 g.nodes.push(None); // sentinel at index 0
164 }
165 f(&mut *g)
166}
167
168// ============================================================
169// Mutations — called from bloom_scene_* FFI in lib.rs

Callers 15

createFunction · 0.85
destroyFunction · 0.85
mutateFunction · 0.85
add_directional_lightFunction · 0.85
add_point_lightFunction · 0.85
clear_lightsFunction · 0.85
node_countFunction · 0.85
drain_dirtyFunction · 0.85
drain_destroyedFunction · 0.85
copy_lightsFunction · 0.85
anim_track_countFunction · 0.85
anim_track_infoFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected