toRect Common fun MutableRect.toRect(): Rect toRect Common fun Size.toRect(): Rect Convert a Size to a Rect.