num-parse
Generic, JavaScript-like parseInt() functions for Rust.
This crate is intended to provide a fast and generic parseInt()-like implementation for Rust, which mostly follows the specification described in the MDN parseInt() documentation.
Likewise in JavaScript, a parseFloat()-like implementation for float-types is planned as well, therefore the crate has been named num-parse already, althought it currently provides parse_int() and variative functions only.
parse_int(), parse_uint()
parse_int() and parse_uint() are generic interfaces to parse integers from string. Whitespace in front of the parsed number is being ignored, same as anything beyond a valid number.
use *;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;