Registry / utility / numtoa

numtoa

JSON →
library1.0.0rscratesunverified

Convert numbers into stack-allocated byte arrays for efficient formatting without heap allocation.

# Cargo.toml [dependencies] numtoa = "1.0.0"
INSTALL
IMPORT
SIG · NUMTOA
N
numtoa
utilityrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NumToA
use numtoa::NumToA;

Converts an integer to a byte array in a given base (here base 10) and prints the result.

use numtoa::NumToA; fn main() { let mut buf = [0u8; 20]; let len = 12345.numtoa(10, &mut buf); println!("Converted: {}", std::str::from_utf8(&buf[..len]).unwrap()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
numtoa — cargo add numtoa · libregistry