[][src]Function olympia_engine::debug::parse_number

pub fn parse_number(src: &str) -> Result<u16, ParseIntError>

Parse a user provided number

Values beginning with 0x or ending with h (such as 0x123 or 35h) are attempted to be parsed as base 16. All others are attempted to be parsed as base 10