3 ms·
The general the coherence rules stop you from defining an implementation that could be possibly defined elsewhere. The important take away implications are: -
by jroesch 11y ago
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
- jamii 11y agoSo the coherence rules don't treat self specially? That would be good to know.