(&mut self, r: &mut Region)
| 234 | } |
| 235 | |
| 236 | pub fn add_output(&mut self, r: &mut Region) -> PortIdx { |
| 237 | let p_x = r.add_port(); |
| 238 | self.outputs.push(p_x); |
| 239 | p_x |
| 240 | } |
| 241 | |
| 242 | pub fn connect_input<'a>(&'a mut self, idx: usize, input: PortIdx, r: &'a mut Region) -> PortEdge { |
| 243 | let p = self.inputs[idx]; |