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