rust-resource
✓智能指针与资源管理专家。处理 Box, Rc, Arc, Weak, RefCell, Cell, interior mutability, RAII, Drop, 堆分配, 引用计数, 智能指针
Installation
SKILL.md
| Box | 单 owner | Yes | 堆分配、递归类型、trait object | | Rc | 共享 | No | 单线程共享、避免 clone | | Arc | 共享 | Yes | 多线程共享、只读数据 | | Weak | 弱引用 | - | 打破循环引用 | | RefCell | 单 owner | No | 运行时借用检查 | | Cell | 单 owner | No | Copy 类型的内部可变性 |
| 大量小对象 | Rc::makemut() 避免 clone | | 频繁读取 | RwLock 比 Mutex 更好 | | 计数器 | 用 AtomicU64 而非 Mutex | | 缓存 | 考虑 moka 或 cached crate |
智能指针与资源管理专家。处理 Box, Rc, Arc, Weak, RefCell, Cell, interior mutability, RAII, Drop, 堆分配, 引用计数, 智能指针 Source: huiali/rust-skills.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/huiali/rust-skills --skill rust-resource Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/huiali/rust-skills --skill rust-resource- Source
- huiali/rust-skills
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is rust-resource?
智能指针与资源管理专家。处理 Box, Rc, Arc, Weak, RefCell, Cell, interior mutability, RAII, Drop, 堆分配, 引用计数, 智能指针 Source: huiali/rust-skills.
How do I install rust-resource?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/huiali/rust-skills --skill rust-resource Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/huiali/rust-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01