|
|
|
|
|
by rnestler
1106 days ago
|
|
> I wanted to separate the type, the trait and the implementation of the trait in different crates. 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) |
|
The problem was that the trait implementations of the types was something like not a core task of the types themselves.