tag | 0b5b249fc93e22aa2acf2f7620f357a8b62ec73a | |
---|---|---|
tagger | David Tolnay <dtolnay@gmail.com> | Fri Mar 03 23:18:01 2023 |
object | 3cab737d59c60014655268a79930861db300023d |
Release 1.0.6
commit | 3cab737d59c60014655268a79930861db300023d | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Fri Mar 03 23:18:01 2023 |
committer | David Tolnay <dtolnay@gmail.com> | Fri Mar 03 23:18:01 2023 |
tree | 770c29df1a35d90841de6f368aa557e9d548aeab | |
parent | e9573cd99ec1fe0bdf229c0614327c1196946e98 [diff] |
Release 1.0.6
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"); }