Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork14.5k
Open
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::numstructNumBuffer{ ..}implNumBuffer{fnnew() ->Self;}impl $Int{fnformat_into(self,&mutNumBuffer) ->&str;}
Steps / History
- ACP:Efficient integer formatting into fixed-size buffer libs-team#546
- Implementation:Implement
int_format_intofeature #142098 - Final comment period (FCP)1
- Stabilization PR:Stabilize
int_format_intofeature #152544
Unresolved Questions
- Should this return
&[ascii::Char]in the future?Efficient integer formatting into fixed-size buffer libs-team#546 (comment) - Should
NumBufferbeNumBuffer<$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 gainu8192in the future. - Naming of
core::num::NumBuffer.