·rust-resource
</>

rust-resource

huiali/rust-skills

Hier finden Sie die folgenden Beispiele: Box, Rc, Arc, Weak, RefCell, Cell, internal mutability, RAII, Drop, 堆分配, 引用计数, 智能指针

4Installationen·0Trend·@huiali

Installation

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

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 |

Hier finden Sie die folgenden Beispiele: Box, Rc, Arc, Weak, RefCell, Cell, internal mutability, RAII, Drop, 堆分配, 引用计数, 智能指针 Quelle: huiali/rust-skills.

Ö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-resource Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code oder Cursor

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-resource
Kategorie
</>Entwicklung
Verifiziert
Erstes Auftreten
2026-02-01
Aktualisiert
2026-02-18

Schnelle Antworten

Was ist rust-resource?

Hier finden Sie die folgenden Beispiele: Box, Rc, Arc, Weak, RefCell, Cell, internal mutability, RAII, Drop, 堆分配, 引用计数, 智能指针 Quelle: huiali/rust-skills.

Wie installiere ich rust-resource?

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