def str.of
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
1267def str.of(s: String, m: Measure) -> Doc:
1268 match m:
1269 case Measure{+width, tail, +keep}:
1270 str.split(U32.is_eq(width, keep), s, width, tail, keep)