gpui: Remove intermediate allocations when reconstructing text from a `TextLayout` (#45037)

Closes #ISSUE

Remove some intermediate allocations when reconstructing text or wrapped
text from a `TextLayout`. Currently creates a intermediate `Vec<String>`
which gets joined, when you could join an `impl Iterator<Item = &str>`

Release Notes:

- N/A *or* Added/Fixed/Improved ...
949cbc2b18tidely committed on 12/17/2025, 7:56:05 AM· committed by GitHubparent6f5da5e
2 files changedLine totals unavailable