Module bitcoin_units::parse
source · Available on crate feature
alloc
only.Expand description
Parsing utilities.
Structs§
- Error with rich context returned when a string can’t be parsed as an integer.
Traits§
- Not strictly necessary but serves as a lint - avoids weird behavior if someone accidentally passes non-integer to the
parse()
function.
Functions§
- Parses a
u32
from a hex string. - Parses a
u128
from a hex string. - Parses the input string as an integer returning an error carrying rich context.