rust-zero-cost
✓零成本抽象與泛型專家。處理泛型, Trait, Monomorphization, static Dispatch, Dynamic Dispatch, impl Trait, dyn Trait, 泛型, 特徵, 單態化, 零成本抽象成本
SKILL.md
| 特性 | 泛型 (static dispatch) | trait object (dynamic dispatch) |
| 性能 | 零开销 | vtable 查找 | | 代码大小 | 可能膨胀 | 更小 | | 编译时间 | 更长 | 更短 | | 灵活性 | 类型必须已知 | 运行时决定 | | 异构集合 | 不支持 | Vec > |
| E0277 | 缺少 trait bound | 添加 T: Trait | | E0038 | trait object 不安全 | 检查对象安全规则 | | E0308 | 类型不匹配 | 统一类型或用泛型 | | E0599 | 未找到实现 | 实现 trait 或检查约束 |
零成本抽象與泛型專家。處理泛型, Trait, Monomorphization, static Dispatch, Dynamic Dispatch, impl Trait, dyn Trait, 泛型, 特徵, 單態化, 零成本抽象成本 來源:huiali/rust-skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/huiali/rust-skills --skill rust-zero-cost- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 rust-zero-cost?
零成本抽象與泛型專家。處理泛型, Trait, Monomorphization, static Dispatch, Dynamic Dispatch, impl Trait, dyn Trait, 泛型, 特徵, 單態化, 零成本抽象成本 來源:huiali/rust-skills。
如何安裝 rust-zero-cost?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/huiali/rust-skills --skill rust-zero-cost 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/huiali/rust-skills
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01