toRect Source set: Common public fun MutableRect.toRect(): Rect toRect Source set: Common @Stable public fun Size.toRect(): Rect Convert a Size to a Rect.