commit | e2ed2a56df8e9ae9fc4b07755639a3c3c0f5673f | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Fri Feb 03 10:12:06 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Fri Feb 03 10:12:06 2023 +0000 |
tree | 78be25a2965dba0c8fc19b48749b6b08a6989b60 | |
parent | aeb7a85522c984d74a817d86fc4d2bef0d38bb9c [diff] | |
parent | d92eced10c7a6747b3934b03c0a2ff57b8f5c3af [diff] |
Upgrade itoa to 1.0.5 am: 87401d8403 am: d92eced10c Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/itoa/+/2419141 Change-Id: Id3c31159aab747fab753c44684f4f3e479a03e47 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"); }