pub fn match_width_height(self, other: Self) -> Self {
        let w = if self.w > 0 {
            self.w
        } else {
            1 + other.w - self.x
        };
        let h = if self.h > 0 {
            self.h
        } else {
            1 + other.h - self.y
        };
        Rectangle::new(self.x, self.y, w, h)
    }
/// Create a rectangle matching another width and/or height
Create a rectangle matching another width and/or height
Create a rectangle matching another width and / or height
pub fn match_width_height(self, other: Self) -> Self {
        let w = if self.w > 0 {
            self.w
        } else {
            1 + other.w - self.x
        };
        let h = if self.h > 0 {
            self.h
        } else {
            1 + other.h - self.y
        };
        Rectangle::new(self.x, self.y, w, h)
    }
pub fn match_width_height ( self , other : Self ) -> Self { let w = if self . w > 0 { self . w } else { 1 + other . w - self . x } ; let h = if self . h > 0 { self . h } else { 1 + other . h - self . y } ; Rectangle :: new ( self . x , self . y , w , h ) }
Create a rectangle matching another width and/or height
Create a rectangle matching another width and / or height
self
other
Self