Rust\'s str
class has a parse
method that returns a FromStr
object. parse
is templated, and so the type that\'s being parsed
It's just not clear what m is here, as there isn't enough information to say. Is it an i32? A u64? Nobody, including Rust, can know.
You need to do something to help figure out what type it is. Either pass it to a function expecting a specific type, or annotate it such that it can be determined what type it should be.