skills/smithery.ai/rust-ownership

rust-ownership

Installation
SKILL.md

Rust Ownership Guidelines

Overview

This skill provides patterns for working with Rust's ownership system, borrowing rules, and lifetimes. Understanding these concepts is essential for writing safe, efficient Rust code.

Quick Reference

Concept Rule Example
Ownership One owner at a time let s2 = s1; (s1 moved)
Borrowing Multiple &T OR one &mut T &data or &mut data
Lifetimes References must not outlive data 'a, 'static
Clone Explicit deep copy data.clone()
Copy Implicit bit copy (simple types) i32, bool, char

Ownership Rules

Installs
1
First Seen
Mar 21, 2026