Inline specialization
Rust Internals
Inline specialization
Warning: This is a half-baked idea. There are many soundness issues with specialization in its current form. I would like to propose an alternative. While it may not be as powerful, it should be sound due to its simplicity. where clause statement Typically, specialization is used to implement special behavior for types implementing a specific trait. Instead of replacing the impl with a new one (requiring trait selection to be vigilant wrt overlapping impls), I propose a statement with similar ...
0 comments
No comments yet.