Tracking Issue for simple_fmt #105054
Labels
A-fmt
Area: std::fmt
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(simple_fmt)]
This is a tracking issue for the
simple_fmt
method on theDisplay
format trait.Public API
Formatting placeholders without any options, like in
format_args!("{}", x)
, will call thesimple_fmt
method rather thanfmt
. This allows for optimized implementations for e.g.<String as Display>::simple_fmt
that do not need to pull in code for padding, etc. See #104525 (comment).Steps / History
Unresolved Questions
Display
?simple_fmt
for their own types?unsafe
, such that the implementation may unsafely assume that theFormatter
's options are all set to default?The text was updated successfully, but these errors were encountered: