(no title)
rnestler | 2 years ago
I usually put the traits in a separate crate, but keep concrete types and implementations for them in the same crate.
What is the use-case for splitting a type and it's implementation into separate crates? (except for cases where the trait or the type are out of your control, then one indeed needs to use the new-type escape hatch)
_nalply|2 years ago
The problem was that the trait implementations of the types was something like not a core task of the types themselves.