///
/// Returns a region which is the intersection of this region and the given *rect.*
///
/// **See also:** [`subtracted()`]
/// [`united()`]
/// [`xored()`]
///
/// Returns a region which is the intersection of this region and *r.*
///
/// ![Region Intersection](rintersect.png)
///
/// The figure shows the intersection of two elliptical regions.
///
/// **See also:** [`subtracted()`]
/// [`united()`]
/// [`xored()`]
Returns a region which is the intersection of this region and the given *rect.

Returns a region which is the intersection of this region and *r.



The figure shows the intersection of two elliptical regions.


Returns a region which is the intersection of this region and the given * rect . Returns a region which is the intersection of this region and * r . The figure shows the intersection of two elliptical regions .
pub fn intersected<R: RegionTrait<'a>>(&self, r: &R) -> Region {
        let (obj_r_1, _funcs) = r.get_region_obj_funcs();
        let (obj_data, funcs) = self.get_region_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).intersected)(obj_data, obj_r_1);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Region::new_from_rc(t);
            } else {
                ret_val = Region::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn intersected < R : RegionTrait < ' a > > ( & self , r : & R ) -> Region { let ( obj_r_1 , _funcs ) = r . get_region_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_region_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . intersected ) ( obj_data , obj_r_1 ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Region :: new_from_rc ( t ) ; } else { ret_val = Region :: new_from_owned ( t ) ; } ret_val } }
Returns a region which is the intersection of this region and the given *rect.
Returns a region which is the intersection of this region and the given * rect .
&self
r
&R