Summary
This is a pre-RFC for a indentation field for the FormattingOptions struct in std::fmt that is used for giving directives to Formatter objects.
A brief Github search for write!(f, "\t returns 7.6k results, which makes me believe the use case I had in mind, which is writing printers for recursive structures, is not that uncommon.
While printing recursive structures, the typical mechanism is to pass a depth that can be used to decide what the indentation should be. If FormattingOptions.indentation existed, the user could set the indentation to be fo.indentation + N by adjusting the internal state during recursive calls and achieving the same result without having to pass an explicit depth.
I think setting indentation is common enough that it deserves a place in the std formatter, I searched for similar proposals but haven't seen one, hence wrote this. Would love to hear feedback and comments, thank you.