·m04-zero-cost
</>

m04-zero-cost

zhanghandong/rust-skills

關鍵:用於泛型、特徵、零成本抽象。觸發條件:E0277、E0308、E0599、generic、trait、impl、dyn、where、單態化、靜態調度、動態調度、impl Trait、trait 邊界不滿足、泛型、特徵、零成本抽象、單態化

271安裝·8熱度·@zhanghandong

安裝

$npx skills add https://github.com/zhanghandong/rust-skills --skill m04-zero-cost

SKILL.md

| Error | Don't Just Say | Ask Instead |

| E0277 | "Add trait bound" | Is this abstraction at the right level? | | E0308 | "Fix the type" | Should types be unified or distinct? | | E0599 | "Import the trait" | Is the trait the right abstraction? | | E0038 | "Make object-safe" | Do we really need dynamic dispatch? |

| Complex trait bounds | m09-domain | Is the abstraction right? | | Object safety issues | m05-type-driven | Can typestate help? | | Type explosion | m10-performance | Accept dyn overhead? |

關鍵:用於泛型、特徵、零成本抽象。觸發條件:E0277、E0308、E0599、generic、trait、impl、dyn、where、單態化、靜態調度、動態調度、impl Trait、trait 邊界不滿足、泛型、特徵、零成本抽象、單態化 來源:zhanghandong/rust-skills。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/zhanghandong/rust-skills --skill m04-zero-cost
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 m04-zero-cost?

關鍵:用於泛型、特徵、零成本抽象。觸發條件:E0277、E0308、E0599、generic、trait、impl、dyn、where、單態化、靜態調度、動態調度、impl Trait、trait 邊界不滿足、泛型、特徵、零成本抽象、單態化 來源:zhanghandong/rust-skills。

如何安裝 m04-zero-cost?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/zhanghandong/rust-skills --skill m04-zero-cost 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/zhanghandong/rust-skills