commit | da1bb4c9e233769e341cdbdcfd5760a8332d9727 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Fri Feb 03 11:31:16 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Fri Feb 03 11:31:16 2023 +0000 |
tree | 78be25a2965dba0c8fc19b48749b6b08a6989b60 | |
parent | 084b3d4f22ef45a8454a9153a63a4faf1d4aee51 [diff] | |
parent | e2ed2a56df8e9ae9fc4b07755639a3c3c0f5673f [diff] |
Upgrade itoa to 1.0.5 am: 87401d8403 am: d92eced10c am: e2ed2a56df Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/itoa/+/2419141 Change-Id: I58971a51fc20d2219310df4fa1acf01c1b7e238a Signed-off-by: Automerger Merge Worker <[email protected]>
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"); }