MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / reset

Method reset

examples/visual_node_graph/src/system.rs:311–316  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

309 }
310
311 pub fn reset(&mut self) {
312 let nodes: Vec<NodeID> = self.cx.nodes().map(|n| n.id).collect();
313 for node_id in nodes {
314 let _ = self.cx.remove_node(node_id);
315 }
316 }
317
318 pub fn event_queue(&mut self, node_id: NodeID) -> ContextQueue<'_> {
319 self.cx.event_queue(node_id)

Callers 1

updateMethod · 0.45

Calls 3

collectMethod · 0.80
nodesMethod · 0.45
remove_nodeMethod · 0.45

Tested by

no test coverage detected