tag | 0e4b95ff4ec9c79df7e5faff2a9771d45f4a5a14 | |
---|---|---|
tagger | David Tolnay <dtolnay@gmail.com> | Sat Jul 15 20:44:22 2023 |
object | 81c115b833792b698cbac1af2d37d707c6a641ee |
Release 1.0.9
commit | 81c115b833792b698cbac1af2d37d707c6a641ee | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Jul 15 20:44:22 2023 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Jul 15 20:44:22 2023 |
tree | b06f8eebcac414ceb254870d2bb5118a9f84d524 | |
parent | e3dcf527007c1672384b985a8080093236167bb6 [diff] |
Release 1.0.9
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"); }