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

Method disconnect

examples/visual_node_graph/src/ui.rs:205–207  ·  view source on GitHub ↗
(&mut self, from: &OutPin, to: &InPin, snarl: &mut Snarl<GuiAudioNode>)

Source from the content-addressed store, hash-verified

203 }
204
205 fn disconnect(&mut self, from: &OutPin, to: &InPin, snarl: &mut Snarl<GuiAudioNode>) {
206 self.remove_edge(from.id, to.id, snarl);
207 }
208
209 fn connect(&mut self, from: &OutPin, to: &InPin, snarl: &mut Snarl<GuiAudioNode>) {
210 let src_node = snarl.get_node(from.id.node).unwrap().id;

Callers 1

remove_edgeMethod · 0.45

Calls 1

remove_edgeMethod · 0.80

Tested by

no test coverage detected