I need to better understand how to read rust api documentation.
For example, I went to write this line of code :
let orderID: Result<i64, > = orderid_param.parse();
Didn't know what to put in the Error portion. I went to the docs for parse
The only thing that makes sense to me is
Errif it’s not possible to parse this string slice into the desired type.
So, I typed out this :
let orderID_: Result<i64,Err("ok")> = orderID.parse();
But this didn't work either. Got syntax errors.
I'm sure, I could find concrete examples out there, but would like to know how to go about it via the docs.