Manual Memory
It gets worse
use std::rc::Rc; use std::cell::RefCell; type Link<T> = Rc<RefCell<Node<T>>>; struct Node<T> { data: T, next: Option<Link<T>>, previous: Option<Link<T>>, } fn main() {}
Rcis reference counting pointer 1- copying
Rcincrements counter - when
Rchandle goes out of scope it decrements counter RefCellis a type that allows interior mutability 1
Too Many Linked Lists 1