It isn't "explicitly prohibiting", it's a limitation of the type system. I'm not sure if it's possible to alleviate this problem, but there exist workarounds (for which you explicitly asked for, hence my answers).
H2CO3
6
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Is `[T; N]` special with drop rules?
|
9 | 617 | December 31, 2024 | |
|
Why can a value where any of its parts have a drop() trait not implement the copy() trait?
|
14 | 1033 | April 9, 2024 | |
|
ArrayVec<T> : Copy for T: Copy?
|
8 | 729 | April 15, 2024 | |
| Conditionally implementing Drop depending on T | 2 | 842 | August 9, 2020 | |
|
Why can't `Drop` be implemented for only a subset of a type?
|
4 | 1011 | August 10, 2020 |