3 ms·
Why "possibly anonymous" ? I don't think we can ever name any of these types. Rust's Existential types exist so that we can say we return such a thing, without
by tialaramex 2y ago
Why "possibly anonymous" ? I don't think we can ever name any of these types. Rust's Existential types exist so that we can say we return such a thing, without being able to name it.
- GrantMoyer 2y agoYou're right, and I was being imprecise. All closure and "function item" types are unnameable; only function pointer types can be named, for example `fn(int) -> int`[1]. [1]: https://doc.rust-lang.org/reference/types/function-item.html https://doc.rust-lang.org/reference/types/function-item.html