Rust: Reference Counted Smart Pointer

Pubblicato il: 08 dicembre 2022
sul canale di: 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


In questa pagina del sito puoi guardare il video online Rust: Reference Counted Smart Pointer della durata di ore minuti seconda in buona qualità , che l'utente ha caricato The Dev Method 08 dicembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,463 volte e gli è piaciuto 129 spettatori. Buona visione!