for a trait with a type parameter I can reference it in the implementation like so:
impl Mul for Foo {
type Output = Bar;
fn mul(self, rhs: self) -> Self::Output {
unimplemented!()
}
}
(Self::Output is what I'm referring to, or <Self as Mul>::Output)
is it possible to do the same for a trait's generic parameters? for example:
impl Into<Bar> for Foo {
fn into(foo: Self) -> <Self as Into>::??? {
unimplemented!()
}
}
I'm at a loss for what to replace the question marks with.