Function scale_value::stringify::custom_parsers::parse_hex
source · pub fn parse_hex(s: &mut &str) -> Option<Result<Value<()>, ParseError>>Expand description
Attempt to parse a hex string into a [Value<()>] (or more specifically,
an unnamed composite).
- Returns an error if we see a leading
0xand then see invalid hex characters after this. - Returns
Noneif no0xis seen first. - Returns
Some(value)if parsing was successful. In this case, the string reference given is wound forwards to consume what was parsed.