rust-mutability

Installation
SKILL.md

Mutability Types

Type Controller Thread-Safe Use Case
&mut T External caller Yes Standard mutable borrow
Cell<T> Interior No Copy types with interior mutability
RefCell<T> Interior No Non-Copy types with interior mutability
Mutex<T> Interior Yes Multi-threaded interior mutability
RwLock<T> Interior Yes Multi-threaded read-write lock

Solution Patterns

Pattern 1: External Mutability

// Standard mutable borrow
fn increment(counter: &mut u32) {
Related skills
Installs
10
GitHub Stars
29
First Seen
Jan 28, 2026