3 ms·
It's how you explicitly cast from one type to another. To use the ? operator with a custom error type, it needs to be converted to the std error type.
by ds206 7y ago
It's how you explicitly cast from one type to another. To use the ? operator with a custom error type, it needs to be converted to the std error type.
- steveklabnik 7y agoIt needs to be converted to whatever error type the function returns. That can be anything.