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

Method remove

perro_source/core/perro_structs/src/structs/post_process.rs:238–244  ·  view source on GitHub ↗
(&mut self, name: &str)

Source from the content-addressed store, hash-verified

236 self.entries
237 .iter_mut()
238 .find(|entry| entry.name.as_deref() == Some(name))
239 .map(|entry| &mut entry.effect)
240 }
241
242 pub fn add(&mut self, name: impl Into<Cow<'static, str>>, effect: PostProcessEffect) {
243 let name = name.into();
244 if let Some(idx) = self
245 .entries
246 .iter()
247 .position(|entry| entry.name.as_deref() == Some(name.as_ref()))

Callers 15

reveal_scene_keyFunction · 0.45
set_file_folder_expandedFunction · 0.45
cached_scene_doc_sharedFunction · 0.45
store_scene_doc_cacheFunction · 0.45
cached_scene_nodeFunction · 0.45
push_scene_undo_snapshotFunction · 0.45
remove_nested_valueFunction · 0.45
remove_indexMethod · 0.45

Calls 3

remove_indexMethod · 0.80
positionMethod · 0.45
iterMethod · 0.45

Tested by 3

remove_nested_valueFunction · 0.36