const-itoa 0.1.0

Fast integer primitive to string conversion
Documentation
  • Coverage
  • 61.29%
    19 out of 31 items documented3 out of 30 items with examples
  • Size
  • Source code size: 38.87 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 394.7 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • EqualMa/const-itoa
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • EqualMa

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