fn escape_time(c: Complex<f64>, limit: u32) -> Option<u32> {
    let mut z = Complex { re: 0.0, im: 0.0 };
    for i in 0..limit {
        // if c is greater than 0.25, or less than -2.0, then x will eventually becomes infinitely
        // large or it approaches zero
        z = z * z + c;
        if z.norm_sqr() > 4.0 {
            return Some(i);
        }
    }

    None
}
// determining if 'c' is in Mandelbrot set, using at most limit iterations(loops) to decide
determining if 'c' is in Mandelbrot set, using at most limit iterations(loops) to decide
determining if ' c ' is in Mandelbrot set using at most limit iterations ( loops ) to decide
fn escape_time(c: Complex<f64>, limit: u32) -> Option<u32> {
    let mut z = Complex { re: 0.0, im: 0.0 };
    for i in 0..limit {
        // if c is greater than 0.25, or less than -2.0, then x will eventually becomes infinitely
        // large or it approaches zero
        z = z * z + c;
        if z.norm_sqr() > 4.0 {
            return Some(i);
        }
    }
    None
}
fn escape_time ( c : Complex < f64 > , limit : u32 ) -> Option < u32 > { let mut z = Complex { re : 0.0 , im : 0.0 } ; for i in 0 .. limit { // if c is greater than 0.25, or less than -2.0, then x will eventually becomes infinitely // large or it approaches zero z = z * z + c ; if z . norm_sqr ( ) > 4.0 { return Some ( i ) ; } } None }
determining if 'c' is in Mandelbrot set, using at most limit iterations(loops) to decide
determining if ' c ' is in Mandelbrot set using at most limit iterations ( loops ) to decide
c
Complex<f64>
limit
u32
c
Complex<f64>
limit
u32