1# @ajax/mesh-rs-parse
23Integers parsed exactly as Rust's `str::parse::<u32 | u64 | i32 | ...>()` and `uN::from_str_radix`
4parse them: an optional `+` (or `-` for a signed type), then at least one digit and nothing else, and
5a value that fits the type. The port reads the Rust's text formats (job specs, control requests) with
6it, so what one accepts the other does.
78## Ported from
910[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): the C port's
11equivalent of Rust's integer `FromStr`, used by `jobs.rs`'s text forms.
1213## Tests
1415`tests/rs_parse.c`: signs, bounds of u32, u64, i32 and i64, radix 16, and what Rust refuses (spaces,
16`0x`, empty, a lone sign, overflow).
1718## Licence
1920MIT. See the repository's LICENSE.