-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the RFC.Relevant to the library API team, which will review and decide on the RFC.
Description
Bringing rust-lang/rust#33127 back from the dead because I came across a desire for this feature today.
However, I would like to extend this proposal to include all the following traits and implement them for<T> [T] where T: <trait> (and presumably Vec<T> as well):
BinaryLowerExpUpperExpLowerHexUpperHexOctalPointer
Finally, I would like to echo @retep998's proposal to just copy the Debug impl and use the above traits to format the elements. It fits considering that the main use for these formatting styles would be in debug or logging output anyway.
It may also be desirable to extend these impls to other collections types as well, using their Debug impls as a basis.
golddranks, durka, RazrFalcon, bombless, DerMitch and 10 more
Metadata
Metadata
Assignees
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the RFC.Relevant to the library API team, which will review and decide on the RFC.