pub fn render_to_string(arena: &Arena, root_id: u32, width: u16) -> StringExpand description
Render the arena tree rooted at root_id to a plain-frame string.
Orchestration (mirrors renderer.ts + render-to-string.ts):
- Build a fresh
TaffyEngine(engine-per-call; see module docs). - Walk the arena: create taffy nodes, apply styles, set text measures.
calculate(root, width, MAX_HEIGHT)— unconstrained height per ink.- Walk arena again: render each node into a
Grid. - Return
grid.get().0(the trimmed frame string).
The returned string matches ink’s renderToString output for unstyled
content (no SGR transformers, no static nodes).