tag | 72336d2e8ad9c3539129120d63eab191a66608cb | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Jan 04 17:04:34 2024 -0800 |
object | 9f680162b3641064ffa8afbd06f1fed312c67479 |
frc_340819280 (11225212,com.google.android.art,com.google.android.go.art)
commit | 9f680162b3641064ffa8afbd06f1fed312c67479 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Apr 11 17:59:37 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Apr 11 17:59:37 2023 +0000 |
tree | 7063856b00fcda978586fe349806ad14c4e22c9c | |
parent | c6cdb5ff196b09e6efda75b05405eb27ff5a5e5d [diff] | |
parent | 4abae58085457d394fdba2722d229f3c616eac58 [diff] |
Snap for 9912757 from 4abae58085457d394fdba2722d229f3c616eac58 to aml-frc-release Change-Id: I061cc7b75dc4e43c4b175a471b29a31035569242
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"); }