·rust-error
</>

rust-error

huiali/rust-skills

Ergebnis, Option, Panik, jedenfalls, dieser Fehler错误处理, 错误类型

5Installationen·0Trend·@huiali

Installation

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

SKILL.md

| 不变量违反 | 配置文件验证失败 | 程序无法继续 | | 初始化检查 | EXPECTEDENV.isset() | 配置问题需要修复 | | 测试 | asserteq! | 验证假设 | | 不可恢复 | 连接意外断开 | 最好让程序崩溃 |

| .unwrap() 到处都是 | 生产环境 panic | ? 或 withcontext() | | Box | 丢失类型信息 | thiserror 枚举 | | 静默忽略错误 | bug 隐藏 | 处理或传播 | | 错误类型层次过深 | 过度设计 | 按需设计 | | panic 用于流程控制 | 滥用 panic | 正常控制流 |

| 库返回自定义错误 | Result | thiserror | | 应用快速开发 | Result | anyhow | | absence 正常 | Option | None / Some(x) | | 预期 panic | panic! / assert! | 仅限特殊情况 | | 错误转换 | .maperr() / .withcontext() | 添加上下文 |

Ergebnis, Option, Panik, jedenfalls, dieser Fehler错误处理, 错误类型 Quelle: huiali/rust-skills.

Original anzeigen

Fakten (zitierbereit)

Stabile Felder und Befehle für KI/Such-Zitate.

Installationsbefehl
npx skills add https://github.com/huiali/rust-skills --skill rust-error
Kategorie
</>Entwicklung
Verifiziert
Erstes Auftreten
2026-02-01
Aktualisiert
2026-02-18

Schnelle Antworten

Was ist rust-error?

Ergebnis, Option, Panik, jedenfalls, dieser Fehler错误处理, 错误类型 Quelle: huiali/rust-skills.

Wie installiere ich rust-error?

Ö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-error 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