Check out example codes for "drop variable rust". It will help you in understanding the concepts better.

Code Example 1

let v = vec![1, 2, 3];

drop(v); // explicitly drop the vector

Learn ReactJs, React Native from akashmittal.com