3 ms·
This is true, however you can get around a lot of the annoyance of it with conversion traits like From<T> and Into<T>. It still takes a bit of boilerplate to w
by leshow 10y ago
This is true, however you can get around a lot of the annoyance of it with conversion traits like From<T> and Into<T>.
It still takes a bit of boilerplate to write unfortunately.
The good news is this likely won't be the case forever, it looks like specialization (I think it's called) and some other type system features will allow you to write some code to resolve this. Intersection impl's I think it's called. Correct me if I'm wrong anyone.