commit | 87401d840312fa37bc752cf1799c487470e337f3 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Thu Feb 02 15:19:29 2023 +0100 |
committer | Jeff Vander Stoep <[email protected]> | Thu Feb 02 15:19:29 2023 +0100 |
tree | 78be25a2965dba0c8fc19b48749b6b08a6989b60 | |
parent | 9ca2be77edb82803681b0a896f09733950878904 [diff] |
Upgrade itoa to 1.0.5 This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update rust/crates/itoa For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Test: TreeHugger Change-Id: I4075f89af54a32cc302910936672507964d81d85
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"); }