///
/// Removes the *margins* from the rectangle, shrinking it.
///
/// **See also:** [`margins_added()`]
/// [`operator()`]
///
Removes the *margins* from the rectangle, shrinking it.
Removes the * margins * from the rectangle shrinking it .
pub fn margins_removed<M: MarginsTrait<'a>>(&self, margins: &M) -> Rect {
        let (obj_margins_1, _funcs) = margins.get_margins_obj_funcs();
        let (obj_data, funcs) = self.get_rect_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).margins_removed)(obj_data, obj_margins_1);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Rect::new_from_rc(t);
            } else {
                ret_val = Rect::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn margins_removed < M : MarginsTrait < ' a > > ( & self , margins : & M ) -> Rect { let ( obj_margins_1 , _funcs ) = margins . get_margins_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_rect_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . margins_removed ) ( obj_data , obj_margins_1 ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Rect :: new_from_rc ( t ) ; } else { ret_val = Rect :: new_from_owned ( t ) ; } ret_val } }
Removes the *margins* from the rectangle, shrinking it.
Removes the * margins * from the rectangle shrinking it .
&self
margins
&M