Blanket Implementation, link
⚓ Rust 📅 2025-07-13 👤 surdeus 👁️ 16After reading Book Ch-10 I was slightly confused about the term blanket implementations (which I assumed meant for all types, but they presented it with bounded params, so I wasn't sure.)
Anyways, this post explains it nicely and links to other posts Blanket Implementations.
It distinguishes clearly (and hopefully correctly) between generic implementation and blanket implementation.
impl<T> Trait for TThey usually also have
whereclauses involved since it is very hard to do anything useful to an unconstrainedT. This does not cover things likeimpl<T> Trait for Vec<T>, which is a generic implementation but not a blanket implementation.
But explains much more. Maybe some find it useful.
3 posts - 2 participants
🏷️ rust_feed