Registry / utility / atoi
library2.0.0rscratesunverified

Parse integers directly from byte slices without unsafe code.

# Cargo.toml [dependencies] atoi = "2.0.0"
INSTALL
IMPORT
SIG · ATOI
A
atoi
utilityrustv2.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.

atoi
use atoi::atoi;

Parses an integer from a byte slice.

use atoi::atoi; fn main() { let bytes = b"42"; let num: Option<i32> = atoi(bytes); println!("{:?}", num); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
2
Resources
atoi — cargo add atoi · libregistry