| commit | e457589e7ced38707af5d3b7d9c99dddad8e5146 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Sun Oct 20 07:11:04 2024 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Sun Oct 20 07:11:04 2024 +0000 |
| tree | c96ceff2a9a4fe0e40611fad539e9e9aaea87795 | |
| parent | 37d86277652f3a2d1dfc67fae4b379bbfffe8a3c [diff] | |
| parent | 3d863bc167fe77f5ed60a7d09c0b470ccdee0a56 [diff] |
Snap for 12510720 from 3d863bc167fe77f5ed60a7d09c0b470ccdee0a56 to busytown-mac-infra-release Change-Id: Ied91398481fe8b2caa0d8809bab9bb0732e17234
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"); }
