The Secret to Rust Ownership: Rc vs. Arc
Rc and Arc are two magic and powerful methods of taming Ownership in Rust. Next to this complexity, Rust also has really easy to use one line tricks. If you are interested, I recommend watching this video after understanding the move keyword: • Master Rust File Handling in One Line 📝 Description Discover the ins and outs of Rust's powerful reference counting mechanism with Rc and Arc in this comprehensive video. Join me as we delve into the world of memory management in Rust and explore how Rc and Arc enable efficient memory sharing and prevent memory leaks. We'll cover the differences between Rc and Arc, their use cases, and best practices for leveraging them in your Rust projects. Important Note: using `.unwrap` without proper error handling is not recommended and should be avoided. I only use `.unwrap` for demonstration purposes in this video. ⏳ Timestamps: 00:00 - Introduction 01:44 - Non-working example 04:28 - Rc Example 10:07 - Arc Example 13:23 - Outro 🔗 Important links: Rust Rc: https://doc.rust-lang.org/std/rc/stru... Rust Arc: https://doc.rust-lang.org/std/sync/st... 👋 Hey there! If you are new to this channel: Hey 👋 my name is Flo and I am a professional software engineer with a passion for coding in Golang, TypeScript, JavaScript, and Rust. This channel is where I share that passion and dive into the exciting world of software engineering. Plus, I love using Emojis and paper-based animations (so have a look for that, if you want to find my videos). 📨 Support and Connect! Become a member. / @flowoelki Discord: / discord X / Twitter: https://x.com/FlorianWoelki LinkedIn: / florian-woelki GitHub: https://github.com/FlorianWoelki #Rust #Arc #Rc #ReferenceCounting #MemoryManagement

Async Rust explained in 20 minutes

You Should Really Know These Traits in Rust

Use Arc Instead of Vec

Why RefCell Exists (And How It Actually Works) | Advanced Rust Part 11

How rust forces you to respect memory

Arc instead of Vec? | Prime Reacts

5 deadly Rust anti-patterns to avoid

Rust Interior Mutability - Sneaking By The Borrow Checker

My Experience with Rust as a Java Dev

but what is 'a lifetime?

Strings in Rust FINALLY EXPLAINED!

Comprehending Proc Macros

Advanced Rust Programming Techniques • Florian Gilcher • GOTO 2024

Understanding Ownership in Rust

Rust Demystified 🪄 Simplifying The Toughest Parts

Choose the Right Option

Visualizing memory layout of Rust's data types

Rust for the impatient

Understanding Rust – Or How to Stop Worrying & Love the Borrow-Checker • Steve Smith • YOW! 2024

