fn line_by_bytes(sizes: &[usize], cap: usize) -> usizeExpand description
The first frame of sizes whose tail weighs no more than cap.
The walk runs from the end and stops at the frame that tips the cap, so a frame’s own size is never summed past what the cut could keep.