fn port_index_to_index_in_controls(&self, port: PortIndex) -> Option<usize> {
        self.controls
            .binary_search_by_key(&port, |p| p.port_index)
            .ok()
    }
/// Get the index within the controls vector of the given port index.
Get the index within the controls vector of the given port index.
Get the index within the controls vector of the given port index .
fn port_index_to_index_in_controls(&self, port: PortIndex) -> Option<usize> {
        self.controls
            .binary_search_by_key(&port, |p| p.port_index)
            .ok()
    }
fn port_index_to_index_in_controls ( & self , port : PortIndex ) -> Option < usize > { self . controls . binary_search_by_key ( & port , | p | p . port_index ) . ok ( ) }
Get the index within the controls vector of the given port index.
Get the index within the controls vector of the given port index .
&self
port
PortIndex
&self
port
PortIndex