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

Code Example 1

# Windows
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Mac or Linux
curl https://sh.rustup.rs -sSf | sh

Code Example 2

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Learn ReactJs, React Native from akashmittal.com