tree: c186ec5c3e8b2fea242a3540dd0121775687d000 [path history] [tgz]
  1. .github/
  2. benches/
  3. src/
  4. tests/
  5. .cargo-checksum.json
  6. .cargo_vcs_info.json
  7. BUILD.bazel
  8. Cargo.lock
  9. Cargo.toml
  10. Cargo.toml.orig
  11. LICENSE-APACHE
  12. LICENSE-MIT
  13. README.md
third_party/rust_crates/vendor/itoa-1.0.14/README.md

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