Jump to ratings and reviews
Rate this book

The Accelerated Guide to Smart Pointers in Rust

Rate this book
We embark on a journey to explore the various types of smart pointers available in Rust, their use cases, and how they contribute to managing memory safely and efficiently. By reading this guide, you'll learn what smart pointers are, how to use them and how to build your own.

In some sense, they are the essence of Rust's "zero-cost abstraction" philosophy, whereby you only pay for what you use.

Smart pointers are powerful tools that provide additional functionality and guarantees compared to raw pointers. If you're unsure what a raw pointer is, that's okay, we'll discuss that too.

We'll cover the core smart pointer types in Rust, including Box, Rc, Arc, RefCell, and Mutex. Each type will be thoroughly explained, accompanied by practical code examples that are linked directly in the Rust playground, so you can run them in your web browser.

Whether you are a Rust enthusiast, a curious learner, or a seasoned developer looking to enhance your memory management skills, this guide is here to support your journey. So let's dive in and unlock the power of smart pointers in Rust!

75 pages, ebook

Published January 1, 2023

1 person want to read

About the author

Tim McNamara

15 books3 followers
Tim McNamara is Professor in the Department of Linguistics and Applied Linguistics at the University of Melbourne, Australia.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (50%)
4 stars
0 (0%)
3 stars
1 (50%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Mochammad Hadyan.
123 reviews4 followers
February 24, 2024
If you want to deep dive on how smart pointers work in Rust, then this is a right book to read. The content is brief, but straight to the point. I believe you must be confused what's so special with this "smart pointers" compared to raw pointers? This book will debunk the concepts to explain why Rust known for the memory and thread safety.

For maximum learning, you need to understand first basic Rust like syntax to have better grasp using this book.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.