commit | 09b63ac350e9bcf7b8317bec5b12a2de6de7fdf0 | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Wed Aug 07 22:54:19 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Aug 07 22:54:19 2024 +0000 |
tree | 9fbfad91e7933458f3ec2c058227dc779bff9cc8 | |
parent | 87af113eb3174cf91651f24cac50cc292284c34f [diff] | |
parent | a0234fafa4ac14f6cb0cbc72bf5c013511815733 [diff] |
Create patch from LICENSE file am: a0234fafa4 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/itoa/+/3211558 Change-Id: I5a8042a2ccde2449185a9f8aba1c116b24f9ecf2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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"); }