fn construct_port(&self, idx: NodeIndex, port: ast::Id) -> ast::Port {
        let node = &self.graph[idx];
        match &node.data {
            NodeData::Port => Port::This { port },
            NodeData::Cell(..) | NodeData::Constant(..) => Port::Comp {
                component: node.name.clone(),
                port,
            },
            NodeData::Hole(group) => Port::Hole {
                group: group.clone(),
                name: port,
            },
        }
    }
/// Constructs a ast::Port from a NodeIndex and Id
Constructs a ast::Port from a NodeIndex and Id
Constructs a ast :: Port from a NodeIndex and Id
fn construct_port(&self, idx: NodeIndex, port: ast::Id) -> ast::Port {
        let node = &self.graph[idx];
        match &node.data {
            NodeData::Port => Port::This { port },
            NodeData::Cell(..) | NodeData::Constant(..) => Port::Comp {
                component: node.name.clone(),
                port,
            },
            NodeData::Hole(group) => Port::Hole {
                group: group.clone(),
                name: port,
            },
        }
    }
fn construct_port ( & self , idx : NodeIndex , port : ast :: Id ) -> ast :: Port { let node = & self . graph [ idx ] ; match & node . data { NodeData :: Port => Port :: This { port } , NodeData :: Cell ( .. ) | NodeData :: Constant ( .. ) => Port :: Comp { component : node . name . clone ( ) , port , } , NodeData :: Hole ( group ) => Port :: Hole { group : group . clone ( ) , name : port , } , } }
Constructs a ast::Port from a NodeIndex and Id
Constructs a ast :: Port from a NodeIndex and Id
&self
idx
NodeIndex
port
ast::Id