/// Find a port by name and type.
Find a port by name and type.
Find a port by name and type .
pub fn find_port<I: 'static, O: 'static>(&self, name: &str) -> Option<Arc<Port<I, O>>> {
        self.ports
            .read()
            .unwrap()
            .iter()
            .filter(|&(_, port)| port.name() == name)
            .filter_map(|(_, port)| port.as_typed::<I, O>())
            .next()
            .cloned()
    }
pub fn find_port < I : ' static , O : ' static > ( & self , name : & str ) -> Option < Arc < Port < I , O > > > { self . ports . read ( ) . unwrap ( ) . iter ( ) . filter ( | & ( _ , port ) | port . name ( ) == name ) . filter_map ( | ( _ , port ) | port . as_typed :: < I , O > ( ) ) . next ( ) . cloned ( ) }
Find a port by name and type.
Find a port by name and type .
&self
name
&str