Manual Memory
Types need to have known size
enum List<T> { Nil, Cons(T, Box<List<T>>), } fn main() {}
Boxis a heap pointer 1Boxpointer is nevernullBoxpointer gets deallocated when the handle goes out of scope
Other kinds of managed pointers 1
Types need to have known size
enum List<T> { Nil, Cons(T, Box<List<T>>), } fn main() {}
Box is a heap pointer 1Box pointer is never nullBox pointer gets deallocated when the handle goes out of scopeOther kinds of managed pointers 1