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