In the argument position impl Trait
is the same as regular generics, with the only difference that it doesn't allow the turbofish syntax.
impl Trait
in the return position is very different.
In the argument position impl Trait
is the same as regular generics, with the only difference that it doesn't allow the turbofish syntax.
impl Trait
in the return position is very different.