fn parse_complex(s: &str) -> Option<Complex<f64>> {
    match parse_pair(s, ',') {
        Some((re, im)) => Some(Complex{re, im}),
        None           => None
    }
}
/// Function to parse a pair of coordinates separated by a comma as complex number
Function to parse a pair of coordinates separated by a comma as complex number
Function to parse a pair of coordinates separated by a comma as complex number
fn parse_complex(s: &str) -> Option<Complex<f64>> {
    match parse_pair(s, ',') {
        Some((re, im)) => Some(Complex{re, im}),
        None           => None
    }
}
fn parse_complex ( s : & str ) -> Option < Complex < f64 > > { match parse_pair ( s , ',' ) { Some ( ( re , im ) ) => Some ( Complex { re , im } ) , None => None } }
Function to parse a pair of coordinates separated by a comma as complex number
Function to parse a pair of coordinates separated by a comma as complex number
s
&str
s
&str