tag | f1200ab157392d7d81e5043608238426d6207fa2 | |
---|---|---|
tagger | David Tolnay <dtolnay@gmail.com> | Mon Jul 03 03:42:05 2023 |
object | 26259a9a1ada016a6d045b5f0ebeea2089f646a3 |
Release 1.0.7
commit | 26259a9a1ada016a6d045b5f0ebeea2089f646a3 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Mon Jul 03 03:42:05 2023 |
committer | David Tolnay <dtolnay@gmail.com> | Mon Jul 03 03:42:05 2023 |
tree | 52be08ec4717104239c8440708d48173a0ef9740 | |
parent | 21ee1ba69749a20a076c15a310612c5b4350d844 [diff] |
Release 1.0.7
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"); }