ModularM
Modular3y ago
2 replies
stu002

can I implement a trait for a third party type?

Am I right in my understanding that I can’t implement a trait I control for a type that I don’t control? For example I couldn’t implement a trait requiring an addition operator for any built in integer types? This is a point of difference with Rust traits and Haskell type classes?
Was this page helpful?