Skip to main content

parse_prefixed_int

Function parse_prefixed_int 

Source
pub fn parse_prefixed_int<T>(input: &str) -> Result<T>
where T: Num, <T as Num>::FromStrRadixErr: Display,
Expand description

Parses a 0x-prefixed hex integer, e.g. 0x1a.

A sign is rejected for every T, matching Go’s strconv.ParseUint.