We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
impl PartialEq for Option
T
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
The current impl PartialEq for Option looks like this:
impl<T> PartialEq<Option<T>> for Option<T> where T: PartialEq<T> { ... }
It could be more general and look like this instead:
impl<A, B> PartialEq<Option<A>> for Option<B> where A: PartialEq<B> { ... }
The text was updated successfully, but these errors were encountered:
Specific use-case where I wanted this to work was:
if path.file_stem() == Some("foo") { ... }
Sorry, something went wrong.
Duplicate of #20063?
No branches or pull requests
The current
impl PartialEq for Option
looks like this:It could be more general and look like this instead:
The text was updated successfully, but these errors were encountered: