Blanket Implementation, link

⚓ Rust    📅 2025-07-13    👤 surdeus    👁️ 2      

surdeus

After 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 T

They usually also have where clauses involved since it is very hard to do anything useful to an unconstrained T . This does not cover things like impl<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

Read full topic

🏷️ rust_feed