Why are the fields of `ParseIntError` and `ParseFloatError` private


#1

How can we get the error kind of the from_str_radix method?


#2

#22639 is the relevant issue, which also contains some explanation and a workaround.