-
Notifications
You must be signed in to change notification settings - Fork 68
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
Move PointExt::new to Point #153
Comments
I think this is a standard way to add functionality to a trait: eg. StreamExt, FutureExt. We also have a |
This is bad for every similar extension, but for If you think this is bad idea, close the issue, I can live with it. |
Why is it completing this function for non Point types though? That seems to be a bug iiuc. |
It is standard to extend traits from foreign crates. But in this case I think this would primarily change that
That said, I also think this is a bug since not only is this bound to |
JetBrains IDE is trying it's best to complete code, and unfortunately completes
::new
for every object, because there'seven for types which actually don't implement
Point
.We live in imperfect world, and it would be easier if rstar moved
::new
toPoint
fromPointExt
. Or just hid it from public API. Perhaps#[doc(hidden)]
.The text was updated successfully, but these errors were encountered: