tag | df5420c5444c28dcb3b2ad272a81276c4dd3aa4c | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Sat Oct 21 00:12:29 2023 -0700 |
object | 9f680162b3641064ffa8afbd06f1fed312c67479 |
frc_340821000 (10681524,com.google.android.go.tzdata5,com.google.android.tzdata5)
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"); }