Re:Three months of Rust
by jroesch on Friday June 05, 2015 @07:31AM
(#9664885)
The general the coherence rules stop you from defining an implementation that could be possibly defined elsewhere.
The important take away implications are:
- you can not implement a trait defined in another crate for a type defined in another crate, unless the trait is parametrized by a type from the current crate
- you can't define overlapping implementations
The important take away implications are: - you can not implement a trait defined in another crate for a type defined in another crate, unless the trait is parametrized by a type from the current crate - you can't define overlapping implementations