tag | 17326365b5c0e9c7c53f8028c6ee5ba2d5d623d2 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue May 07 10:57:42 2024 -0700 |
object | 25195ba86c6a53d1645ba105544ed2d3d491fa60 |
Android 14.0.0 release 36
commit | 25195ba86c6a53d1645ba105544ed2d3d491fa60 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Nov 17 00:12:03 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Nov 17 00:12:03 2023 +0000 |
tree | fcc75a6f315703b95d4e46b72447b49342bdfd18 | |
parent | f596632ee0b8da0212ffa5c4d9da774101599771 [diff] | |
parent | 21306d9521e0814ffb1c74645742e62f7b4f18fc [diff] |
Snap for 11111096 from 21306d9521e0814ffb1c74645742e62f7b4f18fc to 24Q1-release Change-Id: Ic871128e32b1354baad32d54f76e0d52b4826ec9
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"); }