commit | a49621dafbcc165afb951db279bd20e8e863551c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Mar 08 15:42:22 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Mar 08 15:42:22 2023 +0000 |
tree | 78be25a2965dba0c8fc19b48749b6b08a6989b60 | |
parent | a3e5f340b9b95b2501ecf48bdae7109b20d594bd [diff] | |
parent | da1bb4c9e233769e341cdbdcfd5760a8332d9727 [diff] |
Snap for 9710098 from da1bb4c9e233769e341cdbdcfd5760a8332d9727 to mainline-tzdata5-release Change-Id: I0cb342a4e8e3671e5f0ea206071d948434cc9a0e
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"); }