11

Rust Book Study Session - Smart Pointers

 2 years ago
source link: https://www.meetup.com/rust-and-c-plus-plus-in-cardiff/events/283480500/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Details

JOIN US ON ZOOM
----- Link available on day of event -----

********************
Welcome from Rust and Cpp Cardiff! All levels welcome!
********************
Following on from our meetup covering on Functional Language Features & Cargo and Crates.io, this session we will be discussing the Rust Book chapter 15:

https://doc.rust-lang.org/book/
Chapter 15: Smart Pointers

This session is particularly important one, covering the most useful of the standard library Smart Pointer types in Rust:
- Box for allocating values on the heap
- Rc, a reference counting type that enables multiple ownership
- Ref and RefMut, accessed through RefCell, a type that enforces the borrowing rules at runtime instead of compile time

We'll also get our first look at interior mutability, reference cycles and memory leaks. All essential concepts when working with heap memory in Rust.

We think these sessions will be most useful if attendees can work through the chapters prior to the event, but whether you've had time to look at the chapters or not, all are welcome! The sessions are a chance to swap notes, ask questions and discuss any key points.

Don't worry if you missed last week - you can still get set up using the earlier chapters in the book and reach out on our rust book club discord channels for any help! https://discord.gg/DGSpkYP

Look forward to seeing you there!

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK