JetBrains IDE is trying it's best to complete code, and unfortunately completes ::new for every object, because there's
impl<T> PointExt for T where T: Point {}
pub trait PointExt: Point {
fn new() -> Self {
Self::from_value(Zero::zero())
}
even for types which actually don't implement Point.
We live in imperfect world, and it would be easier if rstar moved ::new to Point from PointExt. Or just hid it from public API. Perhaps #[doc(hidden)].
JetBrains IDE is trying it's best to complete code, and unfortunately completes
::newfor 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
::newtoPointfromPointExt. Or just hid it from public API. Perhaps#[doc(hidden)].