Routes Rust programming questions to the appropriate specialized skill or provides general guidance.
Use this skill when the user asks general questions about Rust concepts or when you need to decide which specialized Rust skill to apply.
If the question is about:
-> Use coding_guidelines (as temporary placeholder for m01-ownership) or explain using the "Ownership Rules" below.
If the question is about:
Box, Rc, Arc, RefCell-> Use coding_guidelines (placeholder for m02-resource) or refer to "Smart Pointers" section below.
Result, Option? operator vs unwrap()-> Use coding_guidelines (placeholder for m06-error-handling).
unsafe blocks-> Use unsafe_checker.
Box<T>: Heap allocation, single owner.Rc<T>: Multiple owners, single thread.Arc<T>: Multiple owners, thread-safe.RefCell<T>: Mutability inside an immutable structure (interior mutability), runtime checks.Mutex<T>: Thread-safe interior mutability.Send: Safe to transfer ownership to another thread.Sync: Safe to share references between threads (&T is Send).