tag | 40206b733cf5d90fc748976c943787e03d3c803f | |
---|---|---|
tagger | David Tolnay <dtolnay@gmail.com> | Sat Dec 17 19:20:14 2022 |
object | ef4faeda61024dfb38b3897e46aeda8140828dc6 |
Release 1.0.5
commit | ef4faeda61024dfb38b3897e46aeda8140828dc6 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Dec 17 19:20:14 2022 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Dec 17 19:20:14 2022 |
tree | 53129074fec33945884a5c7ce2b653c6b5b798ee | |
parent | b74302f21e478a097b75ee087c5ddf2bee26e350 [diff] |
Release 1.0.5
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"); }