Parsing number literals as supported by Rust

I was wondering if there is a std function or external crate that can parse all numeric literals that Rust itself supports, e.g. 0xabc or 1_000_000. Didn't find anything with a quick search, so does anyone know better?