Rust: Reference Counted Smart Pointer

Published: 08 December 2022
on channel: The Dev Method
2,463
129

In Rust ownership you have a simple case where there is only ever one owner of a variable. However, there can be times where you need multiple owners to one value.

In Rust, you can enable multiple owners by using the Rc type. This stands for Reference Counting.

0:00 intro
1:07 Using Rc to Share Data
3:13 Cloning an Rc Increases the Reference Count


On this page of the site you can watch the video online Rust: Reference Counted Smart Pointer with a duration of hours minute second in good quality, which was uploaded by the user The Dev Method 08 December 2022, share the link with friends and acquaintances, this video has already been watched 2,463 times on youtube and it was liked by 129 viewers. Enjoy your viewing!