commit | 70072dee955b5b6adc567d8350f0bfca008dd974 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Sun Dec 17 02:17:31 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Sun Dec 17 02:17:31 2023 +0000 |
tree | fcc75a6f315703b95d4e46b72447b49342bdfd18 | |
parent | dffba14e76973a63c0400a5abccefa4ea4ae611c [diff] | |
parent | 841462450deefe12a5e1a5db61aa618d697d9d72 [diff] |
Snap for 11228863 from 841462450deefe12a5e1a5db61aa618d697d9d72 to emu-34-release Change-Id: Iebf1c7d93b0e98f2249557c76cac26cb1df3de05
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"); }