tag | 49719919a3ce744c40b314a31ee87c4cb0d8074a | |
---|---|---|
tagger | David Tolnay <dtolnay@gmail.com> | Tue Mar 26 06:00:42 2024 |
object | 8f392032fadf15b5e6b9b7b6add21875575d67af |
Release 1.0.11
commit | 8f392032fadf15b5e6b9b7b6add21875575d67af | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Mar 26 06:00:42 2024 |
committer | David Tolnay <dtolnay@gmail.com> | Tue Mar 26 06:00:42 2024 |
tree | de2ff7901c3a1339df7980ebdf3f6788fabfaa71 | |
parent | eeca57ddcf93dd9d19b42630808eccbe70103cae [diff] |
Release 1.0.11
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"); }