Module parse

Source
Expand description

Parsing utilities.

Structs§

ParseIntError
Error with rich context returned when a string can’t be parsed as an integer.

Traits§

Integer
Not strictly necessary but serves as a lint - avoids weird behavior if someone accidentally passes non-integer to the parse() function.

Functions§

hex_u32
Parses a u32 from a hex string.
hex_u128
Parses a u128 from a hex string.
int
Parses the input string as an integer returning an error carrying rich context.