-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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 RFCE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.T-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.
Description
Feature gate: #![feature(int_format_into)]
This is a tracking issue for efficient decimal integer formatting into a fixed-size buffer.
Public API
// core::num
struct NumBuffer { .. }
impl NumBuffer {
fn new() -> Self;
}
impl $Int {
fn format_into(self, &mut NumBuffer) -> &str;
}
Steps / History
- ACP: Efficient integer formatting into fixed-size buffer libs-team#546
- Implementation: Implement
int_format_into
feature #142098 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Should this return
&[ascii::Char]
in the future? Efficient integer formatting into fixed-size buffer libs-team#546 (comment) - Should
NumBuffer
beNumBuffer<$Int>
so that the reserved space can be tailored to the specific integer's size? Not a big difference with current integer types, but may be significant if we gainu8192
in the future. - Naming of
core::num::NumBuffer
.
Footnotes
musjj
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 RFCE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.T-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.