Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Blanket Implementation, link
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 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