-
Notifications
You must be signed in to change notification settings - Fork 320
Add some convenience methods to EitherOrBoth #287
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
Conversation
Ping |
src/either_or_both.rs
Outdated
} | ||
} | ||
|
||
/// Converts from `EitherOrBoth<A, B>` to `EitherOrBoth<&A, &B>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Converts from &EitherOrBoth<A, B>
in fact, isn't that more illuminating to the reader? Or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the same phrasing as https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref . However, I agree that your suggestion makes sense.
Makes total sense. Let's edit the docs then it's done? Thanks |
Thanks! |
bors: r+ |
Build succeeded |
No description provided.