Smart pointers sembla liminat, ma junt ili crea combinationes tre potent.
Rc<Vec<Foo>>
- Clonada de multiplic smart pointers queles posse pruntar li sam vector de ínmutabil data-structuras sur li heap.
Rc<RefCell<Foo>>
- Multiplic smart pointers possent pruntar mutabilmen/ínmutabilmen li sam struct Foo
Arc<Mutex<Foo>>
- Multiplic smart pointers possent cluder temporari mutabil/ínmutabil pruntas in un maniere exclusiv in un fil del CPU.
Detallies pri memorie: