pub struct Buffer { /* private fields */ }
Expand description
A correctly sized stack allocation for the formatted integer to be written
into.
let mut buffer = itoa::Buffer::new();
let printed = buffer.format(1234);
assert_eq!(printed, "1234");
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.
Performs copy-assignment from
source
.
Read more
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
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.