pub fn swap<P: PolygonTrait<'a>>(&self, other: &P) -> &Self {
        let (obj_other_1, _funcs) = other.get_polygon_obj_funcs();

        let (obj_data, funcs) = self.get_polygon_obj_funcs();
        unsafe {
            ((*funcs).swap)(obj_data, obj_other_1);
        }
        self
    }
///
/// Swaps polygon *other* with this polygon. This operation is very
/// fast and never fails.
Swaps polygon *other* with this polygon. This operation is very
fast and never fails.
Swaps polygon * other * with this polygon . This operation is very fast and never fails .
pub fn swap<P: PolygonTrait<'a>>(&self, other: &P) -> &Self {
        let (obj_other_1, _funcs) = other.get_polygon_obj_funcs();
        let (obj_data, funcs) = self.get_polygon_obj_funcs();
        unsafe {
            ((*funcs).swap)(obj_data, obj_other_1);
        }
        self
    }
pub fn swap < P : PolygonTrait < ' a > > ( & self , other : & P ) -> & Self { let ( obj_other_1 , _funcs ) = other . get_polygon_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_polygon_obj_funcs ( ) ; unsafe { ( ( * funcs ) . swap ) ( obj_data , obj_other_1 ) ; } self }
Swaps polygon *other* with this polygon.
Swaps polygon * other * with this polygon .
&self
other
&P
&self
other
&P