-
Couldn't load subscription status.
- Fork 13.9k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.to-announceAnnounce this issue on triage meetingAnnounce this issue on triage meeting
Description
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.
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.)
- Implementation: Closure-consuming helper functions for
fmt::Debughelpers #117730 - Update to
from_fnAPI: Replacestd::fmt:FormatterFnwithstd::fmt::from_fn#129017 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
jdahlstromcamsteffen and Alosojoseluis
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.to-announceAnnounce this issue on triage meetingAnnounce this issue on triage meeting