Struct itoa::Buffer [−][src]
A safe API for formatting integers to text.
Example
let mut buffer = itoa::Buffer::new(); let printed = buffer.format(1234); assert_eq!(printed, "1234");
Implementations
impl Buffer
[src][−]
pub fn new() -> Buffer
[src][−]
This is a cheap operation; you don't need to worry about reusing buffers for efficiency.
pub fn format<I: Integer>(&mut self, i: I) -> &str
[src][−]
Print an integer into this buffer and return a reference to its string representation within the buffer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Buffer
[src]
impl Send for Buffer
[src]
impl Sync for Buffer
[src]
impl Unpin for Buffer
[src]
impl UnwindSafe for Buffer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,