mid33 zgłoszeń
Wyjaśnij borrowing i lifetimes w Rust.
Borrowing pozwala na referencje bez przenoszenia ownership: &T (shared, wiele naraz) lub &mut T (exclusive, jedna naraz). Lifetimes ('a) to adnotacje gwarantujące że referencje nie przeżyją danych. Kompilator często je dedukuje (lifetime elision).