Bug: 166632747

Clone this repo:
  1. 15dc262 Upgrade itoa to 1.0.10 am: 7a32db877f by Jeff Vander Stoep · 3 months ago emu-34-2-dev main master
  2. 7a32db8 Upgrade itoa to 1.0.10 by Jeff Vander Stoep · 3 months ago emu-34-3-release
  3. 21306d9 Migrate to cargo_embargo. am: c82d7835ef am: 5d58451d9b am: 83261bb902 by Andrew Walbran · 5 months ago
  4. a807970 Migrate to cargo_embargo. am: c82d7835ef am: 841462450d am: f97072199d by Andrew Walbran · 5 months ago
  5. 83261bb Migrate to cargo_embargo. am: c82d7835ef am: 5d58451d9b by Andrew Walbran · 5 months 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