Notes on Rust’s memory safety model, covering ownership, borrowing, and concurrency primitives.

Topics

  • Ownership & Borrowing — borrowing rules, non-lexical lifetimes, shared and exclusive references, interior mutability
  • Smart PointersBox, Arc, and the Drop trait
  • ConcurrencyMutex, RwLock, atomics, spinlocks, Send/Sync traits, and synchronization/concurrency primitives
  • Memory Model — stack vs. heap, segfaults, iterator invalidation
  • Practical Patterns — connection pooling, PostgreSQL connections

18 items under this folder.