When passing a string to Integer's constructor, it can't parse anything other than base 10 as it uses the default i64 from_str function. I would expect it to parse anything that is a valid Integer ...