def fits.flat
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
1850# A doc printed flat, whole: past the width, or up to a break within it.
1851def fits.flat(f: Flat, jobs: List<&2, Job>, +left: U32) -> Fit:
1852 match f:
1853 case Flat{+w, brk}:
1854 fits.flat.of(U32.is_gt(w, left), brk, jobs, (left - w: U32))