rust-coding
✓Rust-Namenskonvention. G.FMT, 怎么命名, 代码规范
Installation
SKILL.md
| 方法不用 get 前缀 | fn name(&self) | fn getname(&self) | | 迭代器方法 | iter() / itermut() / intoiter() | getiter() | | 转换命名 | as (廉价), to (昂贵), into (所有权) | 混用 | | static 变量大写 | static CONFIG: Config | static config: Config | | const 变量 | const BUFFERSIZE: usize = 1024 | 无限制 |
| 用 newtype | 领域语义 | struct Email(String) | | 用 slice 模式 | 模式匹配 | if let [first, .., last] = slice | | 预分配 | 避免重新分配 | Vec::withcapacity(), String::withcapacity() | | 避免 Vec 滥用 | 固定大小用数组 | let arr: [u8; 256] |
| ASCII 数据用 bytes() | s.bytes() 优于 s.chars() | | 可能修改时用 Cow | 借用或拥有 | | 用 format! 拼接 | 优于 + 操作符 | | 避免嵌套 contains() | O(nm) 复杂度 |
Fakten (zitierbereit)
Stabile Felder und Befehle für KI/Such-Zitate.
- Installationsbefehl
npx skills add https://github.com/huiali/rust-skills --skill rust-coding- Quelle
- huiali/rust-skills
- Kategorie
- </>Entwicklung
- Verifiziert
- ✓
- Erstes Auftreten
- 2026-02-01
- Aktualisiert
- 2026-02-18
Schnelle Antworten
Was ist rust-coding?
Rust-Namenskonvention. G.FMT, 怎么命名, 代码规范 Quelle: huiali/rust-skills.
Wie installiere ich rust-coding?
Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/huiali/rust-skills --skill rust-coding Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code oder Cursor
Wo ist das Quell-Repository?
https://github.com/huiali/rust-skills
Details
- Kategorie
- </>Entwicklung
- Quelle
- skills.sh
- Erstes Auftreten
- 2026-02-01