·rust-ownership
</>

rust-ownership

huiali/rust-skills

所有权、借用、生命周期专家。处理 E0382, E0597, E0506, E0507, E0515, E0716, E0106 等错误。触发词:ownership, borrow, lifetime, move, clone, Copy, 所有权, 借用, 生命周期

4Installs·0Trend·@huiali

Installation

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

SKILL.md

| 函数参数 | 调用者拥有 | | 函数内部变量 | 函数拥有(返回时销毁) | | 结构体字段 | 结构体实例拥有 | | Arc | 多个共享所有者 |

| 只读操作 | &T | 可多个同时存在 | | 需要修改 | &mut T | 同时只能有一个 | | 借用期间原值会被修改吗? | 如果会,问题就在这里 |

| 堆分配单个值 | Box | 简单直接 | | 单线程共享引用计数 | Rc | 轻量级 | | 多线程共享引用计数 | Arc | 原子操作 | | 需要运行时借用检查 | RefCell | 单线程内部可变性 | | 多线程内部可变性 | Mutex 或 RwLock | 线程安全 |

所有权、借用、生命周期专家。处理 E0382, E0597, E0506, E0507, E0515, E0716, E0106 等错误。触发词:ownership, borrow, lifetime, move, clone, Copy, 所有权, 借用, 生命周期 Source: huiali/rust-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/huiali/rust-skills --skill rust-ownership
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is rust-ownership?

所有权、借用、生命周期专家。处理 E0382, E0597, E0506, E0507, E0515, E0716, E0106 等错误。触发词:ownership, borrow, lifetime, move, clone, Copy, 所有权, 借用, 生命周期 Source: huiali/rust-skills.

How do I install rust-ownership?

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-ownership 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