·rust-zero-cost
</>

rust-zero-cost

huiali/rust-skills

零成本抽象与泛型专家。处理泛型, Trait, Monomorphization, static Dispatch, Dynamic Dispatch, impl Trait, dyn Trait, 泛型, 特征, 单态化, 零成本抽象成本

4安装·0热度·@huiali

安装

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

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