fn parse_ip_result(txt: &str) -> Result<IpAddr, String> {
    match txt.parse::<IpAddr>() {
        Ok(val) => Ok(val),
        Err(err) => Err(format!(
            "Could not parse IP from {} because of {}",
            txt, err
        )),
    }
}
// parse a string representation of an IP address to the IpAddr Enum
parse a string representation of an IP address to the IpAddr Enum
parse a string representation of an IP address to the IpAddr Enum
fn parse_ip_result(txt: &str) -> Result<IpAddr, String> {
    match txt.parse::<IpAddr>() {
        Ok(val) => Ok(val),
        Err(err) => Err(format!(
            "Could not parse IP from {} because of {}",
            txt, err
        )),
    }
}
fn parse_ip_result ( txt : & str ) -> Result < IpAddr , String > { match txt . parse :: < IpAddr > ( ) { Ok ( val ) => Ok ( val ) , Err ( err ) => Err ( format ! ( " " txt err ) ) , } }
parse a string representation of an IP address to the IpAddr Enum
parse a string representation of an IP address to the IpAddr Enum
txt
&str
txt
&str