Bug: 166632747

Clone this repo:
  1. 14e5e8f Update Android.bp by running cargo_embargo am: 876f7e9d53 by James Farrell · 10 weeks ago main master
  2. 876f7e9 Update Android.bp by running cargo_embargo by James Farrell · 10 weeks ago
  3. 54ef109 Update Android.bp by running cargo_embargo am: eb2b79a7c2 by James Farrell · 3 months ago
  4. eb2b79a Update Android.bp by running cargo_embargo by James Farrell · 3 months ago
  5. 0215a06 Empty merge of Android 24Q2 Release (ab/11526283) to aosp-main-future by Xin Li · 3 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