encoder-itoa 1.0.10

Fast integer primitive to string conversion
Documentation
  • Coverage
  • 26.32%
    5 out of 19 items documented2 out of 7 items with examples
  • Size
  • Source code size: 33.74 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 296.64 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • dtolnay/itoa
    343 39 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • chensoft

itoa

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"

Example

fn main() {
    let mut buffer = itoa::Buffer::new();
    let printed = buffer.format(128u64);
    assert_eq!(printed, "128");
}

Performance (lower is better)

performance

License