pub fn count_visual_rows_for_text(
line_text: &str,
effective_width: usize,
gutter_width: usize,
hanging_indent: bool,
) -> u32Expand description
Count visual rows for a single line’s text under the renderer’s wrap algorithm. Pure function of (text, geometry).
Behaves exactly like the renderer’s per-logical-line wrap count:
runs apply_wrapping_transform on a single-Text-token input and
tallies non-empty rows. A trailing Break emitted when the last
chunk exactly fills the effective width is followed by nothing
meaningful and does not count as a row.