Feature gate: #![feature(fmt_from_fn)]
This is a tracking issue for core::fmt::from_fn, split off from [117729] Tracking issue for debug_closure_helpers.
ACP: rust-lang/libs-team#288
Public API
// core::fmt
pub fn from_fn<F>(f: F) -> FromFn<F>
where
F: Fn(&mut Formatter<'_>) -> Result
{
FromFn(f)
}
pub struct FromFn<F>(F);
impl<F> fmt::Debug for FromFn<F>
where
F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result;
impl<F> fmt::Display for FromFn<F>
where
F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result;
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(fmt_from_fn)]This is a tracking issue for
core::fmt::from_fn, split off from [117729] Tracking issue fordebug_closure_helpers.ACP: rust-lang/libs-team#288
Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)fmt::Debughelpers #117730from_fnAPI: Replacestd::fmt:FormatterFnwithstd::fmt::from_fn#129017fmt::from_fn#145915Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩