fn add_new_servers<'a>(
        &mut self,
        servers: impl Iterator<Item = &'a String>,
    ) -> Result<(), String> {
        let servers: Result<Vec<_>, String> = servers
            .map(|server| ServerAddress::parse(server).map_err(|e| e.to_string()))
            .collect();

        self.add_new_servers_from_addresses(servers?.iter());
        Ok(())
    }
/// Create a new ServerDescription for each address and add it to the topology.
Create a new ServerDescription for each address and add it to the topology.
Create a new ServerDescription for each address and add it to the topology .
fn add_new_servers<'a>(
        &mut self,
        servers: impl Iterator<Item = &'a String>,
    ) -> Result<(), String> {
        let servers: Result<Vec<_>, String> = servers
            .map(|server| ServerAddress::parse(server).map_err(|e| e.to_string()))
            .collect();
        self.add_new_servers_from_addresses(servers?.iter());
        Ok(())
    }
fn add_new_servers < ' a > ( & mut self , servers : impl Iterator < Item = & ' a String > , ) -> Result < ( ) , String > { let servers : Result < Vec < _ > , String > = servers . map ( | server | ServerAddress :: parse ( server ) . map_err ( | e | e . to_string ( ) ) ) . collect ( ) ; self . add_new_servers_from_addresses ( servers ? . iter ( ) ) ; Ok ( ( ) ) }
Create a new ServerDescription for each address and add it to the topology.
Create a new ServerDescription for each address and add it to the topology .
&mut self
servers
impl Iterator<Item = &'a String>
&mut self
servers
impl Iterator<Item = &'a String>