core-ktx / androidx.graphics / android.graphics.Rect / and

and

inline infix fun Rect.and(r: Rect): Rect

Returns the union of two rectangles as a new rectangle.