commit | b3890a56cbc57cd7ec15b61d2fcc88721c41027c | [log] [tgz] |
---|---|---|
author | David Brazdil <dbrazdil@google.com> | Mon Jan 23 13:37:11 2023 +0000 |
committer | David Brazdil <dbrazdil@google.com> | Mon Jan 23 13:37:11 2023 +0000 |
tree | d04c2dd7610b7b7a34e3778656a157b3ac71c281 | |
parent | c5f7f6f82ccdfa25214204f1e7d4ea1f44c6462b [diff] |
Update TEST_MAPPING Test: None Change-Id: I0fb6e426d75aa6521f6d01fb03958a2a99171418
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"); }