Registry / utility / btoi
library0.5.0rscratesunverified

Parse integers directly from ASCII byte slices without string allocation.

# Cargo.toml [dependencies] btoi = "0.5.0"
INSTALL
IMPORT
SIG · BTOI
B
btoi
utilityrustv0.5.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.

btoi
use btoi::btoi;

Parse an integer from a byte slice using btoi.

use btoi::btoi; fn main() -> Result<(), Box<dyn std::error::Error>> { let bytes = b"12345"; let num: i32 = btoi(bytes)?; println!("Parsed integer: {}", num); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
btoi — cargo add btoi · libregistry