Bug: 166632747

Clone this repo:
  1. 7921e77 Make itoa available to product and vendor am: b3aca06ece by Matthew Maurer · 2 weeks ago master
  2. b3aca06 Make itoa available to product and vendor by Matthew Maurer · 2 weeks ago
  3. d92eced Upgrade itoa to 1.0.5 am: 87401d8403 by Jeff Vander Stoep · 7 weeks ago
  4. 87401d8 Upgrade itoa to 1.0.5 by Jeff Vander Stoep · 7 weeks ago
  5. ea92cd0 Update TEST_MAPPING am: 9ca2be77ed by Jeff Vander Stoep · 7 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