跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/huiali/rust-skills/rust-error-advanced

Codex Model Missing Values and Parse Failures in Rust

Use `Option`, `Result`, and structured errors so callers can distinguish outcomes and trace an error's source.

中文

Install in Codex

Use a local Rust project and Cargo. The exercise can use the standard library and a temporary fixture.

  1. Copy the pinned `.codex/skills/rust-error-advanced/` directory into `.agents/skills/rust-error-advanced/` in the project.
  2. Give Codex the library function, its callers, and the failure cases they need to distinguish.

Example task

For local `load_limit`, use three inputs: an absent setting, valid `12`, and invalid `bad`. Define outcomes and an error that preserves the parse cause.

What to check

Callers can distinguish absent, valid 12, and parse failure. Tests can match the exact error category.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Do I need thiserror in a library?

Follow the project's dependencies. The standard library supports typed errors and sources, while thiserror can reduce display and conversion boilerplate.

Related skills from this repository

  • Codex Rust Const Generics for Fixed-Size Buffers
Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯