I have made a struct that wrappes two numbers together, but i get an error of conflicting implementations for the symbol impl<T> From<T> for T
in core.
My defenition is diffrent right? I have two generics, with different trait bounds?
impl<F: Into<T>, T: From<F> + Default + Clone> From<Vec2<F>> for Vec2<T> {
fn from(value: Vec2<F>) -> Self {
Vec2::from(value.x.into(), value.y.into())
}
}
Full impl found in docs:
#[unstable(feature = "exclusive_wrapper", issue = "98407")]
impl<T> From<T> for Exclusive<T> {
#[inline]
fn from(t: T) -> Self {
Self::new(t)
}
}
Is my feature automaticaly implemented or is this confliction in the way? Is there any way to override this?