commit | aba400804eac523a8863f6e0a54c4e55b7b04eb8 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue Oct 29 18:32:53 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Tue Oct 29 18:32:53 2024 +0000 |
tree | c96ceff2a9a4fe0e40611fad539e9e9aaea87795 | |
parent | 5ecddc1af151a285c30e081f348c4d08ab48408b [diff] | |
parent | 5068c0ddc14aeb3ed5c894cabc22b0d264af8f61 [diff] |
Snap for 12572747 from 5068c0ddc14aeb3ed5c894cabc22b0d264af8f61 to build-tools-release Change-Id: If0aafcf2e3cfad201d120dd309cf5de780af7416
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"); }