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

Function cached_scene_doc

perro_editor/res/scripts/editor/main.rs:35–37  ·  view source on GitHub ↗

Deep-cloned doc for callers that mutate it. Read-only paths use [`cached_scene_doc_shared`] to skip the full clone.

(text: &str)

Source from the content-addressed store, hash-verified

33
34/// Deep-cloned doc for callers that mutate it. Read-only paths use
35/// [`cached_scene_doc_shared`] to skip the full clone.
36pub fn cached_scene_doc(text: &str) -> SceneDoc {
37 (*cached_scene_doc_shared(text)).clone()
38}
39
40pub fn cached_scene_doc_shared(text: &str) -> Arc<SceneDoc> {

Callers 1

load_preview_sceneFunction · 0.85

Calls 2

cached_scene_doc_sharedFunction · 0.85
cloneMethod · 0.80

Tested by

no test coverage detected