I have a string that contains a number in the octal system. Now I'd like to convert this String to an integer. I found text.parse() which converts the string into an integer with radix 10.
How do I convert the String to a number given a radix? (Ideally a solution that works for hexadecimal/decimal/binary/octal, and not only for octal)
from_str_radix