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

Code Example 1

//You can't do that in rust because it makes it easy to make mistakes and can lead
//to unwanted bugs due to misunderstandings

Learn ReactJs, React Native from akashmittal.com