3 ms·
Rust also has associated types, which are exposed to the implementer, but not to the consumer.
by orthoxerox 4y ago
Rust also has associated types, which are exposed to the implementer, but not to the consumer.
- maxbond 4y agoI mean, generics and associated types aren't equivalent, but they also are often exposed to the consumer. Eg, if you're accepting an Iterator, you'll want to populate the Item associated type.