Bug: 166632747

Clone this repo:
  1. 0158815 Marks itoa available in OEM apexes. am: b7faf345e7 by Dmitry Avershin · 5 weeks ago main master
  2. b7faf34 Marks itoa available in OEM apexes. by Dmitry Avershin · 5 weeks ago
  3. 7807c5b Marks itoa available in OEM apexes. am: b99db4a687 by Dmitry Avershin · 5 weeks ago
  4. b99db4a Marks itoa available in OEM apexes. by Dmitry Avershin · 5 weeks ago
  5. 09b63ac Create patch from LICENSE file am: a0234fafa4 by James Farrell · 8 weeks ago

itoa

This crate provides a fast conversion of integer primitives to decimal strings. The implementation comes straight from libcore but avoids the performance penalty of going through core::fmt::Formatter.

See also ryu for printing floating point primitives.

Version requirement: rustc 1.36+

[dependencies]
itoa = "1.0"

Example

fn main() {
    let mut buffer = itoa::Buffer::new();
    let printed = buffer.format(128u64);
    assert_eq!(printed, "128");
}

Performance (lower is better)

performance

License