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§

Source§

impl<T: NumBufferTrait> NumBuffer

Source

pub const fn new() -> Self

🔬This is a nightly-only experimental API. (int_format_into #138215)

Initializes internal buffer.

Source

pub const fn capacity(&self) -> usize

🔬This is a nightly-only experimental API. (int_format_into #138215)

Returns the length of the internal buffer.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§