I guess `"foo".fmt(f)` internally uses `f.pad("foo")` so @alexcrichton's approach is perhaps a bit simpler.