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

Code Example 1

// you can create a randge like this:
start..stop // stop will be excluded

//OR like this:
start..=stop // stop will be included

Learn ReactJs, React Native from akashmittal.com