The operators == and != make the 'Rect' consistent with 'Point' and 'Area'. The patch also adds the 'Rect::clamp' method, which is generally useful for sanitizing input. Issue #5352