Struct itoa::Buffer

source · []
pub struct Buffer { /* private fields */ }
Expand description

A correctly sized stack allocation for the formatted integer to be written into.

Example

let mut buffer = itoa::Buffer::new();
let printed = buffer.format(1234);
assert_eq!(printed, "1234");

Implementations

This is a cheap operation; you don’t need to worry about reusing buffers for efficiency.

Print an integer into this buffer and return a reference to its string representation within the buffer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.