Boxes, Heaps, and Stacks - Tim McNamara

  • Raw pointers in rust are unsafe pointers that are not guaranteed to point to valid memory, don’t have an auto cleanup, don’t move ownership

  • Reference is a pointer that also has lifetime information. E.g.: & has a reference to a lifetime while * doesn’t

  • Stack is a region of the address space that stores fixed size variables