Registry / utility / parse-int

parse-int

JSON →
library0.9.0rscratesunverified

Parse &str with common prefixes to integer values, supporting hex, octal, binary, and decimal.

# Cargo.toml [dependencies] parse_int = "0.9.0"
INSTALL
IMPORT
SIG · PARSE-INT
P
parse-int
utilityrustv0.9.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.

parse
use parse_int::parse;

Parses a hex string to an integer.

use parse_int::parse; fn main() { let val = parse::<i32>("0xFF").unwrap(); println!("{}", val); // 255 }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
parse-int — cargo add parse-int · libregistry