trait 未解之谜
💡
原文中文,约500字,阅读约需2分钟。
📝
内容提要
讨论如何对所有类型划分 negative trait bound,提出使用 trait 中的 bool 或 u8 常量的可能解决方案,并在相关论坛上进行了讨论。
🎯
关键要点
- 讨论如何对所有类型划分 negative trait bound。
- 提出使用 trait 中的 bool 常量作为可能的解决方案。
- 在相关论坛上讨论了 trait 中 bool 常量的实现。
- 探讨使用 trait 中的 u8 常量进行类型划分的可能性。
🏷️
标签
➡️