commit | 7a32db877fba05ba6cc9651335c7c8d48a114b04 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Thu Feb 01 19:50:18 2024 +0100 |
committer | Jeff Vander Stoep <[email protected]> | Thu Feb 01 19:50:18 2024 +0100 |
tree | ac3d3be89ecdf22430217ad0de9783cf725dbd6d | |
parent | 841462450deefe12a5e1a5db61aa618d697d9d72 [diff] |
Upgrade itoa to 1.0.10 This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update external/rust/crates/itoa For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md Test: TreeHugger Change-Id: Ifbfdeaff58d84ca5bd6006782ef383d881966856
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"); }