Before we get into ownership we need to understand how data works with memory. The stack and the heap both are parts of memory that are available to your program to use at runtime, but they have their own differences.
www.rustfinity.com/learn/rust/t...