mid19 zgłoszeń
Czym jest smart pointer w Rust?
Smart pointery to typy zarządzające pamięcią: Box<T> (heap allocation), Rc<T> (reference counting), Arc<T> (atomic RC, thread-safe), RefCell<T> (runtime borrow checking). Implementują Deref i Drop. Pozwalają na wzorce niemożliwe z zwykłymi referencjami.