4 ms·
impl Trait as the return type actually added quite a bit more than in argument position. In particular, it allows you to return a lambda without boxing since yo
by slaymaker1907 5y ago
impl Trait as the return type actually added quite a bit more than in argument position. In particular, it allows you to return a lambda without boxing since you cannot get the exact return type of a lambda (at least not yet). impl return types are sort of a special case of existential typing.