(&mut self, graph_id: &GraphId)
| 89 | |
| 90 | impl BitVMClientPublicData { |
| 91 | pub fn graph_mut(&mut self, graph_id: &GraphId) -> &mut dyn BaseGraph { |
| 92 | if let Some(peg_in) = self.peg_in_graphs.iter_mut().find(|x| x.id() == graph_id) { |
| 93 | return peg_in; |
| 94 | } |
| 95 | if let Some(peg_out) = self.peg_out_graphs.iter_mut().find(|x| x.id() == graph_id) { |
| 96 | return peg_out; |
| 97 | } |
| 98 | panic!("Graph ID not found"); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | #[derive(Serialize, Deserialize, Eq, PartialEq)] |
no test coverage detected