1# @ajax/mesh-parse
23Numbers parsed exactly as Rust's `str::parse` (and `from_str_radix(16)`) accepts them: an optional `+`
4(or `-` for signed), digits only, no whitespace, no overflow; Rust's float grammar (`.5`, `5.`, `1e3`,
5`inf`, `NaN`, no hex floats). C's `strtoul` would accept `" -1"` and wrap it.
67## Ported from
89`str::parse::<u64 | u32 | u16 | i32 | f32 | f64>()` and `u64::from_str_radix(_, 16)`, as the
10[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) fleet uses them to parse its documents,
11reports and cluster configs.
1213## Tests
1415`tests/parse.c`: what Rust accepts and refuses.
1617## Licence
1819MIT. See the repository's LICENSE.