-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse into Option<T>
#4
Comments
It may be useful but currently I do not have the use case and time. Maybe you can set a "flag" as default value? |
@Hexilee That's certainly a possibility. Would you accept a PR if I created one? I'd certainly take a look at the code if you would! |
PR is welcome! I will take some time to review the code and make the decision. |
@Hexilee Looking through things now; it appears as though the only two errors that can be returned are If that's the correct course of action, I actually think this should be as simple as calling |
The purpose to use |
@jhpratt |
I will close this issue |
This could be useful for things where an element may be present and have useful info, but is sometimes expected to not be present. My specific use case is ranking of sports teams — I currently have to catch the error and reparse into a different struct.
The text was updated successfully, but these errors were encountered: