-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
potential-2.0potential changes for `either` 2.0potential changes for `either` 2.0
Description
Hi everyone,
I've just hit an issue while trying to replace an impl AsRef
with a concrete Either
type in a return position, here's an example: https://play.rust-lang.org/?gist=1f4771605ae47ea7e4e10881a994a2dc&version=stable&mode=debug&edition=2015
I believe it happens because Either::as_ref
method effectively hides the AsRef::as_ref
method :(
Shouldn't it be renamed to something like to_ref
so it doesn't overlap with the AsRef
trait, or is there any reason behind this specific name? The same goes for as_mut
and probably for into_iter
as well.
Metadata
Metadata
Assignees
Labels
potential-2.0potential changes for `either` 2.0potential changes for `either` 2.0