(&self, other: Rect)
| 525 | /// Results are valid only if width and height are non-negative. |
| 526 | #[inline] |
| 527 | pub fn union(&self, other: Rect) -> Rect { |
| 528 | Rect::new( |
| 529 | self.x0.min(other.x0), |
| 530 | self.y0.min(other.y0), |
| 531 | self.x1.max(other.x1), |
| 532 | self.y1.max(other.y1), |
| 533 | ) |
| 534 | } |
| 535 | |
| 536 | /// Compute the union with one point. |
| 537 | /// |
no outgoing calls
no test coverage detected