tag | 2334735aee27c1686fcc76ba99c991be77c05494 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri Oct 20 21:17:58 2023 -0700 |
object | 19ac196c37227217a90436f6ad6b573ccdfaf973 |
aml_sdk_340912010 (10539832,com.google.android.sdkext)
commit | 19ac196c37227217a90436f6ad6b573ccdfaf973 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 05:13:13 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 05:13:13 2023 +0000 |
tree | 7063856b00fcda978586fe349806ad14c4e22c9c | |
parent | 1f3a1f1d3e59d4f9297a20f4561db282d6d82727 [diff] | |
parent | c42c4eaf61c61127a4c1907f0171b453780fade4 [diff] |
Snap for 10453563 from c42c4eaf61c61127a4c1907f0171b453780fade4 to mainline-sdkext-release Change-Id: Idf6ec41592d35aadee1f8bec5d1ca3cec3909bd3
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"
fn main() { let mut buffer = itoa::Buffer::new(); let printed = buffer.format(128u64); assert_eq!(printed, "128"); }