commit | c5f7f6f82ccdfa25214204f1e7d4ea1f44c6462b | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Tue Dec 13 14:38:04 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Dec 13 14:38:04 2022 +0000 |
tree | 3e22c3561aab05ecfb4ca002c32c468efd1417d0 | |
parent | d79ea3a5b754221116f99c9bde6f4fa052b98792 [diff] | |
parent | 0e806b42a20bbade6a6b704391781ecaaaf3c1db [diff] |
Merge "Upgrade itoa to 1.0.4"
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"); }