NumBuffer in core::fmt - Rust (original) (raw)
pub struct NumBuffer<T: NumBufferTrait> { /* private fields */ }🔬This is a nightly-only experimental API. (int_format_into #138215)
Expand description
A buffer wrapper of which the internal size is based on the maximum number of digits the associated integer can have.
Implementations§
impl<T: NumBufferTrait> NumBuffer
pub const fn new() -> Self
🔬This is a nightly-only experimental API. (int_format_into #138215)
Initializes internal buffer.
pub const fn capacity(&self) -> usize
🔬This is a nightly-only experimental API. (int_format_into #138215)
Returns the length of the internal buffer.