core::fmt::Formatter needs setter methods #62731
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
If you're given a format string when formatting a struct there's no way to
Formatter
based on your decision above.Example: if you get a width argument, you can't use some of the width space yourself and then tell an inner field to format itself with a smaller width value because you used some of it.
So
Formatter
should get methods to change its configuration for things that are safe to change (width, alternate flag, precision, etc)The text was updated successfully, but these errors were encountered: